OctaCore/src/shared/gl.hh

26 lines
404 B
C++
Raw Permalink Normal View History

#ifndef GL_HH
#define GL_HH
#ifndef STANDALONE
# ifdef __APPLE__
# include "SDL2/SDL.h"
# define GL_GLEXT_LEGACY
# define __glext_h_
# include <OpenGL/gl.h>
# define main SDL_main
# else
# include <SDL.h>
# include <SDL_opengl.h>
# endif
#endif
2020-07-30 03:19:13 +02:00
static inline uint hthash(GLuint key) {
return key;
}
static inline bool htcmp(GLuint x, GLuint y) {
return x==y;
}
#endif