3dphotoshoot
diff src/opengl.h @ 10:c71c477521ca
converting to GLES2 and C++
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 31 May 2015 00:40:26 +0300 |
parents | e31e23ead56f |
children | ad49e1f9b627 |
line diff
1.1 --- a/src/opengl.h Mon May 25 05:27:26 2015 +0300 1.2 +++ b/src/opengl.h Sun May 31 00:40:26 2015 +0300 1.3 @@ -1,7 +1,12 @@ 1.4 #ifndef OPENGL_H_ 1.5 #define OPENGL_H_ 1.6 1.7 -#include <GLES/gl.h> 1.8 -#include <GLES/glext.h> 1.9 + 1.10 +#ifdef ANDROID 1.11 +#include <GLES2/gl2.h> 1.12 +#include <GLES2/gl2ext.h> 1.13 +#else 1.14 +#include <GL/glew.h> 1.15 +#endif 1.16 1.17 #endif /* OPENGL_H_ */