本文整理汇总了C++中TestScene::runPanda方法的典型用法代码示例。如果您正苦于以下问题:C++ TestScene::runPanda方法的具体用法?C++ TestScene::runPanda怎么用?C++ TestScene::runPanda使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestScene
的用法示例。
在下文中一共展示了TestScene::runPanda方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: arg
//.........这里部分代码省略.........
}
else if (0 == arg.compare("panda") || 0 == arg.compare("panda3d"))
{
runner = 3;
}
else if (0 == arg.compare("1"))
{
scene = new TestScene1();
}
else if (0 == arg.compare("2"))
{
scene = new TestScene2();
}
else if (0 == arg.compare("3"))
{
scene = new TestScene3();
}
else if (0 == arg.compare("4"))
{
scene = new TestScene4();
}
else if (0 == arg.compare("5"))
{
scene = new TestScene5();
}
else if (0 == arg.compare("6"))
{
scene = new TestScene6();
}
else if (0 == arg.compare("7"))
{
scene = new TestScene7();
}
else if (0 == arg.compare("8"))
{
scene = new TestScene8();
}
else if (0 == arg.compare("8.1"))
{
scene = new TestScene81();
}
else if (0 == arg.compare("8.2"))
{
scene = new TestScene82();
}
else if (0 == arg.compare("9"))
{
scene = new TestScene9();
}
else if (0 == arg.compare("10"))
{
scene = new TestScene10();
}
else if (0 == arg.compare("11"))
{
scene = new TestScene11();
}
else if (0 == arg.compare("12"))
{
scene = new TestScene12();
}
else if (0 != arg.compare("purge"))
{
throw std::string("Undefined runner: ") + arg;
}
}
if (!scene)
{
throw "No scene was chosen";
}
// required for runPanda()
argc = 1;
switch (runner)
{
case 0:
scene->runPURGE();
break;
case 1:
scene->runOgre();
break;
case 2:
scene->runOsg();
break;
case 3:
scene->runPanda(argc, argv);
break;
}
return EXIT_SUCCESS;
}
catch (std::string s)
{
std::cerr << "Exception: " << s << std::endl;
return EXIT_FAILURE;
}
catch (char const* c)
{
std::cerr << "Exception: " << c << std::endl;
return EXIT_FAILURE;
}
}