本文整理汇总了C++中VRCamera::updateMonitorPoint方法的典型用法代码示例。如果您正苦于以下问题:C++ VRCamera::updateMonitorPoint方法的具体用法?C++ VRCamera::updateMonitorPoint怎么用?C++ VRCamera::updateMonitorPoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VRCamera
的用法示例。
在下文中一共展示了VRCamera::updateMonitorPoint方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: specialPressed
void specialPressed(int key, int x, int y)
{ switch (key)
{ /** Calibration movements **/
case GLUT_KEY_PAGE_DOWN:
{ screen.translate(0,0,-0.5);
cam.updateMonitorPoint(screen);
calibratorHelper.setScreen(screen);
}
break;
case GLUT_KEY_PAGE_UP:
{ screen.translate(0,0,0.5);
cam.updateMonitorPoint(screen);
calibratorHelper.setScreen(screen);
}
break;
/** Helper Informations **/
case GLUT_KEY_F1:
{ calibratorHelper.switchCalibration();
}
break;
case GLUT_KEY_F2:
{ calibratorHelper.switchInstructions();
}
break;
case GLUT_KEY_F3:
{ calibratorHelper.switchFPS();
}
break;
case GLUT_KEY_F4:
{ calibratorHelper.switchHeadCalibration();
}
break;
}
}
示例2: handleKeypress
void handleKeypress(unsigned char key, int x, int y)
{ switch (key)
{ //Quit program
case 'q':
case 27:
{ cleanup();
exit(0);
}
break;
case 'p':
{
// Print the current trial
for (map<string,double>::iterator iter = factors.begin(); iter!=factors.end(); ++iter)
{
cerr << iter->first << " " << iter->second << " ";
}
cerr << endl;
}
break;
case '2':
{ screen.translate(0,-0.5,0);
cam.updateMonitorPoint(screen);
calibratorHelper.setScreen(screen);
}
break;
case '8':
{ screen.translate(0,0.5,0);
cam.updateMonitorPoint(screen);
calibratorHelper.setScreen(screen);
}
break;
case '4':
{ screen.translate(-0.5,0,0);
cam.updateMonitorPoint(screen);
calibratorHelper.setScreen(screen);
}
break;
case '6':
{ screen.translate(0.5,0,0);
cam.updateMonitorPoint(screen);
calibratorHelper.setScreen(screen);
}
break;
case 'g':
calibratorHelper.switchGrid();
break;
case 'b':
calibratorHelper.switchBoxes();
break;
case 'f':
glutFullScreen();
break;
}
}