nuclear@11: #ifndef VR_IMPL_H_ nuclear@11: #define VR_IMPL_H_ nuclear@11: nuclear@11: #include nuclear@11: nuclear@11: using namespace OVR; nuclear@11: nuclear@11: struct VRContext { nuclear@11: DeviceManager *ovr_devman; nuclear@11: HMDDevice *ovr_hmd_dev; nuclear@11: SensorDevice *ovr_sensor_dev; nuclear@15: SensorFusion *ovr_sfusion; nuclear@11: nuclear@11: struct { nuclear@11: char *display; nuclear@11: int display_xoffs, display_yoffs; nuclear@11: nuclear@11: // the full width and height of the display (both eyes) nuclear@11: int width, height; nuclear@11: float fov; nuclear@11: // the full aspect ratio of the display (both eyes) nuclear@11: float aspect; nuclear@11: float ipd; nuclear@11: float distort[4]; nuclear@11: // the right lens center offset (negate for left) nuclear@11: float lens_center_offset; nuclear@11: float proj_center_offset; nuclear@11: float scale; // scaling to be applied to the two views to fill the screen nuclear@11: } info; nuclear@11: }; nuclear@11: nuclear@11: extern VRContext vr_ctx; nuclear@11: nuclear@11: bool vr_gl_init(); nuclear@11: nuclear@11: #endif // VR_IMPL_H_