16 std::cout <<
"Initializing Ovr" << std::endl;
25 std::cout <<
"Destroying Ovr" << std::endl;
51 std::cout <<
"OVR detected" << std::endl;
55 std::cout <<
"No OVR detected!!!" << std::endl;
56 std::cout <<
"Creating a Debug version of DK1" << std::endl;
62 std::cout <<
"Something really wrong just happened!" << std::endl;
70 std::ifstream file (
"files/ovr_mock.txt", std::ios::in | std::ios::binary | std::ios::ate);
73 std::streampos size = file.tellg();
76 file.seekg(0, std::ios::beg);
79 std::cout <<
"Ovr mockData loaded: " << size <<
" bytes long" << std::endl;
83 std::cout <<
"Failed to load Ovr mockData" << std::endl;
100 std::cout <<
"The required capabilities are not present!" << std::endl;
108 static int mockIndex = 0;
114 std::cout <<
"No mockData" << std::endl;
125 sscanf(&
mockData[mockIndex],
"%lf %lf %lf %lf", x, y, z, w);
134 int attempts = 10000;
146 *x = (double)orientation.
x;
147 *y = (
double)orientation.
y;
148 *z = (double)orientation.
z;
149 *w = (
double)orientation.
w;
164 os <<
"***** Ovr ******" << std::endl;
165 os <<
"\tovrInitiated: " << (sxovr.
ovrInitiated ?
"true" :
"false") << std::endl;
190 os <<
"\tDefaultEyeFov: " << std::endl <<
200 os <<
"\tMaxEyeFov: " << std::endl <<
214 os <<
"*** END-Ovr ****" << std::endl;
OVR_EXPORT void ovrHmd_GetDesc(ovrHmd hmd, ovrHmdDesc *desc)
OVR_EXPORT ovrSensorState ovrHmd_GetSensorState(ovrHmd hmd, double absTime)
OVR_EXPORT void ovrHmd_Destroy(ovrHmd hmd)
OVR_EXPORT ovrHmd ovrHmd_Create(int index)
OVR_EXPORT void ovr_Shutdown()
OVR_EXPORT ovrBool ovr_Initialize()
OVR_EXPORT ovrBool ovrHmd_StartSensor(ovrHmd hmd, unsigned int supportedCaps, unsigned int requiredCaps)
ovrFovPort MaxEyeFov[ovrEye_Count]
ovrFovPort DefaultEyeFov[ovrEye_Count]
const char * Manufacturer
std::ostream & operator<<(std::ostream &os, const Ovr &sxovr)
unsigned int DistortionCaps
OVR_EXPORT ovrHmd ovrHmd_CreateDebug(ovrHmdType type)
void getXYZW(double *x, double *y, double *z, double *w)
const char * DisplayDeviceName