25 #ifndef ODTRGL2INCLUDE
26 #define ODTRGL2INCLUDE
33 #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED) || defined(TARGET_IPHONE_SIMULATOR)
35 #include <OpenGLES/ES2/gl.h>
36 #include <OpenGLES/ES2/glext.h>
38 #elif defined(ANDROID) || defined(TRGL2EMUL_ENABLED) || defined(EMCC)
39 #include <GLES2/gl2.h>
49 #if defined(ANDROID) || defined(OD_TRGL2_IOS) || defined(EMCC)
50 #define OD_TRGL2_NATIVEES2
57 #define MAX_COUNTER_BEFORE_FLASH 300
60 #define glesSafeDrawArrays ::glDrawArrays
#define glesSafeDrawArrays
typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target)
typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program