libgoatvr

view src/opengl.h @ 30:1a8343ea54ce

fixed on windows
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Apr 2015 04:01:47 +0300
parents 0fea7c2b25d7
children
line source
1 #ifndef VR_OPENGL_H_
2 #define VR_OPENGL_H_
4 #ifdef WIN32
5 #define WIN32_LEAN_AND_MEAN 1
6 #include <windows.h>
7 #endif
9 #ifdef __APPLE__
10 #include <OpenGL/gl.h>
11 #include <OpenGL/glext.h>
12 #else
13 #include <GL/gl.h>
14 #endif
16 #include "glext.h"
18 #ifdef __unix__
19 #include <GL/glx.h>
20 #endif
22 void vrimp_swap_buffers(void);
24 #if defined(__unix__)
25 #define vrimp_glfunc(n) glXGetProcAddress(n)
26 #elif defined(WIN32)
27 #define vrimp_glfunc(n) wglGetProcAddress(n)
28 #endif
30 #endif /* VR_OPENGL_H_ */