oculus1

view src/vr_impl.h @ 12:d797639e0234

moving on to the distortion... not correct yet
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 20 Sep 2013 10:14:29 +0300
parents b069a5c27388
children 464e1d135d68
line source
1 #ifndef VR_IMPL_H_
2 #define VR_IMPL_H_
4 #include <OVR.h>
6 using namespace OVR;
8 struct VRContext {
9 DeviceManager *ovr_devman;
10 HMDDevice *ovr_hmd_dev;
11 SensorDevice *ovr_sensor_dev;
12 SensorFusion ovr_sfusion;
14 struct {
15 // the full width and height of the display (both eyes)
16 int width, height;
17 float fov;
18 // the full aspect ratio of the display (both eyes)
19 float aspect;
20 float ipd;
21 float distort[4];
22 // the right lens center offset (negate for left)
23 float lens_center;
24 } info;
25 };
27 extern VRContext vr_ctx;
29 bool vr_gl_init();
31 #endif // VR_IMPL_H_