OPENGL: Add a Context class used to describe the active OpenGL context

This commit is contained in:
Bastien Bouclet 2016-01-09 08:22:26 +01:00
parent 482255032e
commit ed38c20cce
17 changed files with 276 additions and 140 deletions

View file

@ -41,6 +41,11 @@
# define GL_BGRA GL_BGRA_EXT
#endif
#if !defined(GL_UNPACK_ROW_LENGTH)
// The Android SDK does not declare GL_UNPACK_ROW_LENGTH_EXT
#define GL_UNPACK_ROW_LENGTH 0x0CF2
#endif
#elif defined(USE_GLEW)
#include <GL/glew.h>
#elif defined(SDL_BACKEND) && defined(USE_OPENGL)