libgoatvr
annotate src/opengl.h @ 5:e63cb28fc644
working on the linux side a bit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 18 Sep 2014 10:56:45 +0300 |
parents | |
children | 3d9ec6fe97d7 |
rev | line source |
---|---|
nuclear@5 | 1 #ifndef VR_OPENGL_H_ |
nuclear@5 | 2 #define VR_OPENGL_H_ |
nuclear@5 | 3 |
nuclear@5 | 4 #ifdef WIN32 |
nuclear@5 | 5 #define WIN32_LEAN_AND_MEAN 1 |
nuclear@5 | 6 #include <windows.h> |
nuclear@5 | 7 #endif |
nuclear@5 | 8 |
nuclear@5 | 9 #ifdef __APPLE__ |
nuclear@5 | 10 #include <OpenGL/gl.h> |
nuclear@5 | 11 #else |
nuclear@5 | 12 #include <GL/gl.h> |
nuclear@5 | 13 #endif |
nuclear@5 | 14 |
nuclear@5 | 15 #ifdef __unix__ |
nuclear@5 | 16 #include <GL/glx.h> |
nuclear@5 | 17 #endif |
nuclear@5 | 18 |
nuclear@5 | 19 void vr_gl_swap_buffers(void); |
nuclear@5 | 20 |
nuclear@5 | 21 #endif /* VR_OPENGL_H_ */ |