sgl
diff include/sgl.h @ 40:f7de32814f34
sortof made the ios backend to compile and run ... sortof
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 28 Jun 2012 03:42:26 +0300 |
parents | e1a27aa24956 |
children |
line diff
1.1 --- a/include/sgl.h Wed Jun 27 05:54:57 2012 +0300 1.2 +++ b/include/sgl.h Thu Jun 28 03:42:26 2012 +0300 1.3 @@ -1,6 +1,26 @@ 1.4 #ifndef SGL_H_ 1.5 #define SGL_H_ 1.6 1.7 +#ifdef __APPLE__ 1.8 +#include <TargetConditionals.h> 1.9 + 1.10 +#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) 1.11 +#include <OpenGLES/ES2/gl.h> 1.12 +#else /* !iphone */ 1.13 +#include <OpenGL/gl.h> 1.14 +#endif /* iphone/isim */ 1.15 + 1.16 +#else 1.17 +/* !__APPLE__ */ 1.18 +#ifdef WIN32 1.19 +#include <windows.h> 1.20 +#endif /* WIN32 */ 1.21 + 1.22 +#include <GL/gl.h> 1.23 +#endif /* __APPLE__ */ 1.24 + 1.25 + 1.26 + 1.27 #define SGL_DOUBLE 1 1.28 #define SGL_DEPTH 2 1.29 #define SGL_STENCIL 4