本文整理汇总了C++中MainMenu::run方法的典型用法代码示例。如果您正苦于以下问题:C++ MainMenu::run方法的具体用法?C++ MainMenu::run怎么用?C++ MainMenu::run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainMenu
的用法示例。
在下文中一共展示了MainMenu::run方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main() {
MainMenu start;
start.initComponents();
start.run();
return 0;
}
示例2: run
void JadeEngine::run(const Common::UString &target) {
_baseDirectory = target;
init();
initCursors();
if (EventMan.quitRequested())
return;
status("Successfully initialized the engine");
CursorMan.hideCursor();
CursorMan.set();
playVideo("black");
playVideo("publisher");
playVideo("bwlogo");
playVideo("graymatr");
playVideo("attract");
if (EventMan.quitRequested())
return;
CursorMan.showCursor();
MainMenu *mainMenu = new MainMenu();
mainMenu->show();
mainMenu->run();
delete mainMenu;
if (EventMan.quitRequested())
return;
playSound("musicbank00046", Sound::kSoundTypeMusic, true);
bool showFPS = ConfigMan.getBool("showfps", false);
Graphics::Aurora::FPS *fps = 0;
if (showFPS) {
fps = new Graphics::Aurora::FPS(FontMan.get(Graphics::Aurora::kSystemFontMono, 13));
fps->show();
}
Graphics::Aurora::Cube *cube = 0;
try {
cube = new Graphics::Aurora::Cube("ui_ph_silk");
} catch (Common::Exception &e) {
Common::printException(e);
}
while (!EventMan.quitRequested()) {
EventMan.delay(10);
}
delete cube;
delete fps;
}