fractorb
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/opengl.h Sat Nov 18 20:04:16 2017 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +#ifndef OPENGL_H_ 1.5 +#define OPENGL_H_ 1.6 + 1.7 +#ifdef HAVE_CONFIG_H_ 1.8 +#include "config.h" 1.9 +#endif 1.10 + 1.11 +#if defined(IPHONE) || defined(__IPHONE__) 1.12 +#include <OpenGLES/ES2/gl.h> 1.13 + 1.14 +#define glClearDepth glClearDepthf 1.15 +#define GLDEF 1.16 +#include "sanegl.h" 1.17 + 1.18 +#elif defined(ANDROID) 1.19 +#include <GLES2/gl2.h> 1.20 +#include <GLES2/gl2ext.h> 1.21 +#define GLDEF 1.22 +#include "sanegl.h" 1.23 + 1.24 +#else 1.25 + 1.26 +#include <GL/glew.h> 1.27 + 1.28 +#ifdef __APPLE__ 1.29 +#include <GLUT/glut.h> 1.30 +#else 1.31 +#include <GL/glut.h> 1.32 +#endif /* __APPLE__ */ 1.33 + 1.34 +#endif /* IPHONE */ 1.35 + 1.36 +#endif /* OPENGL_H_ */