cybergrid
[vrfileman] / src / opengl.h
1 #ifndef OPENGL_H_
2 #define OPENGL_H_
3
4 #ifdef HAVE_CONFIG_H_
5 #include "config.h"
6 #endif
7
8 #if defined(IPHONE) || defined(__IPHONE__)
9 #include <OpenGLES/ES2/gl.h>
10
11 #define glClearDepth    glClearDepthf
12 #define GLDEF
13 #include "sanegl.h"
14
15 #elif defined(ANDROID)
16 #include <GLES2/gl2.h>
17 #include <GLES2/gl2ext.h>
18 #define GLDEF
19 #include "sanegl.h"
20
21 #else
22
23 #include <GL/glew.h>
24
25 #ifdef __APPLE__
26 #include <GLUT/glut.h>
27 #else
28 #include <GL/glut.h>
29 #endif  /* __APPLE__ */
30
31 #endif  /* IPHONE */
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 int init_opengl(void);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif  /* OPENGL_H_ */