oculus1

view src/vr_impl.h @ 13:464e1d135d68

hurraaaay!
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Sep 2013 03:00:47 +0300
parents d797639e0234
children 402cbb6d9ce3
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_offset;
24 float proj_center_offset;
25 float scale; // scaling to be applied to the two views to fill the screen
26 } info;
27 };
29 extern VRContext vr_ctx;
31 bool vr_gl_init();
33 #endif // VR_IMPL_H_