libgoatvr
view src/opengl.h @ 19:437fe32ac633
ops... wasn't handling the stereo eye separation correctly.
also fixed a bug in vr_libovr.c causing an assertion inside LibOVR when ovrHmd_GetEyePose was called as a result of calls to view_rotation or view_translation outside of vr_begin/vr_end
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 04 Oct 2014 03:39:14 +0300 |
parents | e63cb28fc644 |
children | 0fea7c2b25d7 |
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 #else
12 #include <GL/gl.h>
13 #endif
15 #ifdef __unix__
16 #include <GL/glx.h>
17 #endif
19 void vrimp_swap_buffers(void);
21 void (*vrimp_glfunc(const char *name))();
23 #endif /* VR_OPENGL_H_ */