21 #ifdef BEATMUP_OPENGLVERSION_GLES
23 #include <EGL/eglext.h>
24 #ifdef BEATMUP_OPENGLVERSION_GLES31
25 #include <GLES3/gl31.h>
26 #include <GLES3/gl3ext.h>
27 #include <GLES2/gl2ext.h>
28 #elif BEATMUP_OPENGLVERSION_GLES20
29 #include <GLES2/gl2.h>
30 #include <GLES2/gl2ext.h>
32 #error OpenGL ES version is not specified
34 #ifdef BEATMUP_PLATFORM_ANDROID
35 #include <android/native_window_jni.h>
37 #elif BEATMUP_PLATFORM_WINDOWS
48 #include "../exception.h"
62 static inline void check(
const std::string& info) {
63 GLuint err = glGetError();
64 if (err != GL_NO_ERROR)
81 #ifdef BEATMUP_OPENGLVERSION_GLES20
88 #ifdef BEATMUP_CHANNEL_ORDER_BGRA
95 #ifdef BEATMUP_CHANNEL_ORDER_BGRA
97 #elif BEATMUP_CHANNEL_ORDER_ARGB
104 #ifdef BEATMUP_OPENGLVERSION_GLES20
111 #ifdef BEATMUP_CHANNEL_ORDER_BGRA
118 #ifdef BEATMUP_CHANNEL_ORDER_BGRA
120 #elif BEATMUP_CHANNEL_ORDER_ARGB
129 #ifdef BEATMUP_OPENGLVERSION_GLES20
165 #if BEATMUP_CHANNEL_ORDER_ARGB
166 #ifdef BEATMUP_OPENGLVERSION_GLES
171 #ifdef BEATMUP_PLATFORM_BIGENDIAN
172 GL_UNSIGNED_INT_8_8_8_8_REV,
174 GL_UNSIGNED_INT_8_8_8_8,
Base class for all exceptions.
GLException(const char *info)
GLException(const std::string &info)
static void check(const std::string &info)
GLException(const char *info, int errCode)
Exception communicating the use of an unsupported feature on GPU.
Unsupported(const char *info)
const GLuint TEXTUREHANDLER_INTERNALFORMATS[]
const GLuint BITMAP_INTERNALFORMATS[]
const GLuint BITMAP_PIXELTYPES[]
Mapping of bitmap pixel formats to GL pixel types.
const GLuint BITMAP_PIXELFORMATS[]
Mapping of bitmap pixel formats to GL pixel formats.