fractorb

view src/opengl.h @ 0:6e849d7377ff

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 18 Nov 2017 20:04:16 +0200
parents
children
line source
1 #ifndef OPENGL_H_
2 #define OPENGL_H_
4 #ifdef HAVE_CONFIG_H_
5 #include "config.h"
6 #endif
8 #if defined(IPHONE) || defined(__IPHONE__)
9 #include <OpenGLES/ES2/gl.h>
11 #define glClearDepth glClearDepthf
12 #define GLDEF
13 #include "sanegl.h"
15 #elif defined(ANDROID)
16 #include <GLES2/gl2.h>
17 #include <GLES2/gl2ext.h>
18 #define GLDEF
19 #include "sanegl.h"
21 #else
23 #include <GL/glew.h>
25 #ifdef __APPLE__
26 #include <GLUT/glut.h>
27 #else
28 #include <GL/glut.h>
29 #endif /* __APPLE__ */
31 #endif /* IPHONE */
33 #endif /* OPENGL_H_ */