goat3d
diff goatview/src/opengl.h @ 81:7458b8568463
forgot to add opengl.h/c
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 08 May 2014 23:05:29 +0300 |
parents | |
children | 70b7c41a4f17 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/goatview/src/opengl.h Thu May 08 23:05:29 2014 +0300 1.3 @@ -0,0 +1,28 @@ 1.4 +#ifndef OPENGL_H_ 1.5 +#define OPENGL_H_ 1.6 + 1.7 +#include <GL/glew.h> 1.8 + 1.9 +#ifdef WIN32 1.10 +#include <windows.h> 1.11 +#endif 1.12 + 1.13 +#ifdef __APPLE__ 1.14 +#include <OpenGL/gl.h> 1.15 +#include <OpenGL/glu.h> 1.16 +#else 1.17 +#include <GL/gl.h> 1.18 +#include <GL/glu.h> 1.19 +#endif 1.20 + 1.21 +#ifdef __cplusplus 1.22 +extern "C" { 1.23 +#endif 1.24 + 1.25 +int init_opengl(void); 1.26 + 1.27 +#ifdef __cplusplus 1.28 +} 1.29 +#endif 1.30 + 1.31 +#endif /* OPENGL_G_ */