oculus1
annotate 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 |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef VR_IMPL_H_ |
nuclear@1 | 2 #define VR_IMPL_H_ |
nuclear@1 | 3 |
nuclear@1 | 4 #include <OVR.h> |
nuclear@1 | 5 |
nuclear@1 | 6 using namespace OVR; |
nuclear@1 | 7 |
nuclear@3 | 8 struct VRContext { |
nuclear@1 | 9 DeviceManager *ovr_devman; |
nuclear@1 | 10 HMDDevice *ovr_hmd_dev; |
nuclear@1 | 11 SensorDevice *ovr_sensor_dev; |
nuclear@3 | 12 SensorFusion ovr_sfusion; |
nuclear@1 | 13 |
nuclear@3 | 14 struct { |
nuclear@3 | 15 // the full width and height of the display (both eyes) |
nuclear@3 | 16 int width, height; |
nuclear@3 | 17 float fov; |
nuclear@3 | 18 // the full aspect ratio of the display (both eyes) |
nuclear@3 | 19 float aspect; |
nuclear@3 | 20 float ipd; |
nuclear@3 | 21 float distort[4]; |
nuclear@12 | 22 // the right lens center offset (negate for left) |
nuclear@12 | 23 float lens_center; |
nuclear@3 | 24 } info; |
nuclear@1 | 25 }; |
nuclear@1 | 26 |
nuclear@3 | 27 extern VRContext vr_ctx; |
nuclear@1 | 28 |
nuclear@12 | 29 bool vr_gl_init(); |
nuclear@12 | 30 |
nuclear@1 | 31 #endif // VR_IMPL_H_ |