libgoatvr
annotate src/opengl.h @ 33:1102327fe85f
added red-cyan anaglyph fallback drawing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Oct 2015 06:34:00 +0200 |
parents | 0fea7c2b25d7 |
children |
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@23 | 11 #include <OpenGL/glext.h> |
nuclear@5 | 12 #else |
nuclear@5 | 13 #include <GL/gl.h> |
nuclear@5 | 14 #endif |
nuclear@5 | 15 |
nuclear@30 | 16 #include "glext.h" |
nuclear@30 | 17 |
nuclear@5 | 18 #ifdef __unix__ |
nuclear@5 | 19 #include <GL/glx.h> |
nuclear@5 | 20 #endif |
nuclear@5 | 21 |
nuclear@8 | 22 void vrimp_swap_buffers(void); |
nuclear@8 | 23 |
nuclear@30 | 24 #if defined(__unix__) |
nuclear@30 | 25 #define vrimp_glfunc(n) glXGetProcAddress(n) |
nuclear@30 | 26 #elif defined(WIN32) |
nuclear@30 | 27 #define vrimp_glfunc(n) wglGetProcAddress(n) |
nuclear@30 | 28 #endif |
nuclear@5 | 29 |
nuclear@5 | 30 #endif /* VR_OPENGL_H_ */ |