oculus1
annotate src/vr_impl.h @ 3:b069a5c27388
added a couple more stuff, fixed all the LibOVR line endings
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 15 Sep 2013 04:10:05 +0300 |
parents | e2f9e4603129 |
children | d797639e0234 |
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@3 | 22 } info; |
nuclear@1 | 23 }; |
nuclear@1 | 24 |
nuclear@3 | 25 extern VRContext vr_ctx; |
nuclear@1 | 26 |
nuclear@1 | 27 #endif // VR_IMPL_H_ |