本文整理汇总了C++中Viewport::dumpInfos方法的典型用法代码示例。如果您正苦于以下问题:C++ Viewport::dumpInfos方法的具体用法?C++ Viewport::dumpInfos怎么用?C++ Viewport::dumpInfos使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Viewport
的用法示例。
在下文中一共展示了Viewport::dumpInfos方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: keyboard
void keyboard(unsigned char key, int x, int y)
{
bool changed = true;
switch (key)
{
case 'q':
//std::cout << "LEFT ROLL" << std::endl;
win.rotateAroundAxis(2, -rotationDegree);
break;
case 'e':
//std::cout << "RIGHT ROLL" << std::endl;
win.rotateAroundAxis(2, rotationDegree);
break;
case 'w':
//std::cout << "Moving forward." << std::endl;
win.moveAlongAxis(2, -1, mouseDown);
break;
case 's':
//std::cout << "Moving backward." << std::endl;
win.moveAlongAxis(2, 1, mouseDown);
break;
case 'a':
//std::cout << "Moving left." << std::endl;
win.moveAlongAxis(0, -1, mouseDown);
break;
case 'd':
//std::cout << "Moving right." << std::endl;
win.moveAlongAxis(0, 1, mouseDown);
break;
case 'r':
//std::cout << "Moving up." << std::endl;
win.moveAlongAxis(1, 1, mouseDown);
break;
case 'f':
//std::cout << "Moving down." << std::endl;
win.moveAlongAxis(1, -1, mouseDown);
break;
case 'R':
win.reset();
break;
case ' ':
std::cout << std::endl;
win.dumpInfos();
tellLights();
changed = false;
break;
case 't':
raymarching_stepsize = raymarching_stepsize_lo;
raymarching_hq = false;
break;
case 'T':
raymarching_stepsize = raymarching_stepsize_hi;
raymarching_hq = false;
break;
case 'g':
raymarching_accuracy = raymarching_accuracy_lo;
raymarching_hq = false;
break;
case 'G':
raymarching_accuracy = raymarching_accuracy_hi;
raymarching_hq = false;
break;
case 'h':
raymarching_hq = !raymarching_hq;
if (raymarching_hq)
{
raymarching_stepsize = raymarching_stepsize_hi;
raymarching_accuracy = raymarching_accuracy_hi;
}
else
{
raymarching_stepsize = raymarching_stepsize_lo;
raymarching_accuracy = raymarching_accuracy_lo;
}
break;
case '1':
lights_enabled[0] = !lights_enabled[0];
break;
case '2':
lights_enabled[1] = !lights_enabled[1];
break;
case 'c':
drawCS = !drawCS;
break;
case 'm':
//.........这里部分代码省略.........