libgoatvr

annotate 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
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@8 19 void vrimp_swap_buffers(void);
nuclear@8 20
nuclear@8 21 void (*vrimp_glfunc(const char *name))();
nuclear@5 22
nuclear@5 23 #endif /* VR_OPENGL_H_ */