8 #if defined(IPHONE) || defined(__IPHONE__)
9 #include <OpenGLES/ES2/gl.h>
11 #define glClearDepth glClearDepthf
15 #elif defined(ANDROID)
16 #include <GLES2/gl2.h>
17 #include <GLES2/gl2ext.h>
26 #include <GLUT/glut.h>
29 #endif /* __APPLE__ */
34 #define GL_RGB16F 0x881b
37 #define GL_RGBA16F 0x881a
40 #define GL_RGB32F 0x8815
43 #define GL_RGBA32F 0x8814
45 #ifndef GL_LUMINANCE16F
46 #define GL_LUMINANCE16F 0x881e
48 #ifndef GL_LUMINANCE32F
49 #define GL_LUMINANCE32F 0x8818
51 #ifndef GL_DEPTH24_STENCIL8
52 #define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES
59 int init_opengl(void);
65 #endif /* OPENGL_H_ */