device(d),
base_camera(c)
{
- const OculusRiftDevice::Private &dev_priv = device.get_private();
unsigned supported = ovrTrackingCap_Orientation|ovrTrackingCap_MagYawCorrection|ovrTrackingCap_Position;
- ovrHmd_ConfigureTracking(dev_priv.ovr_hmd, supported, 0);
+ ovrHmd_ConfigureTracking(device.get_private().ovr_hmd, supported, 0);
}
void OculusRiftCamera::reset_tracking()
right_mesh((GL::VERTEX2, GL::TEXCOORD2,0, GL::TEXCOORD2,1, GL::TEXCOORD2,2, GL::TEXCOORD1,3)),
shprog(vs_source, fs_source)
{
- const OculusRiftDevice::Private &dev_priv = device.get_private();
- ovrHmd hmd = dev_priv.ovr_hmd;
+ ovrHmd hmd = device.get_private().ovr_hmd;
ovrFovPort left_fov = hmd->DefaultEyeFov[ovrEye_Left];
ovrFovPort right_fov = hmd->DefaultEyeFov[ovrEye_Right];