1 /* 2 * No copyright claimed, Public Domain 3 */ 4 5 #ifdef __APPLE__ 6 /* we already have a reasonably sane GL environment here */ 7 #include <OpenGL/gl.h> 8 #include <OpenGL/glext.h> 9 #else 10 11 #ifdef GLES2 12 #include <GLES2/gl2.h> 13 #include <GLES2/gl2ext.h> 14 #define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES 15 #ifndef GL_DEPTH_STENCIL_ATTACHMENT 16 #define GL_DEPTH_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT 17 #endif 18 19 #elif GLES3 20 #include <GLES3/gl3.h> 21 #include <GLES3/gl3ext.h> 22 23 #else 24 25 #include <GL/gl.h> 26 #include "glext.h" 27 28 #endif 29 #endif 30