本文整理汇总了C++中AppWindow::run方法的典型用法代码示例。如果您正苦于以下问题:C++ AppWindow::run方法的具体用法?C++ AppWindow::run怎么用?C++ AppWindow::run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppWindow
的用法示例。
在下文中一共展示了AppWindow::run方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//==========================================================================
// Main routine
//==========================================================================
int main ( int argc, char** argv )
{
// Init freeglut library:
glutInit ( &argc,argv );
glutInitDisplayMode ( GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH );
// Now create the window of your application:
AppWindow* w = new AppWindow ( "CSE165 Mini-Project", 300, 300, 640, 480 );
// Finally start the main loop:
w->run ();
}
示例2: main
//==========================================================================
// Main routine
//==========================================================================
int main ( int argc, char** argv )
{
// Init random number generator
srand(time(NULL));
// Init freeglut library:
glutInit ( &argc,argv );
glutInitDisplayMode ( GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH );
// Now create the window of your application:
AppWindow* w = new AppWindow ( "CSE165 Support Code", 300, 300, 640, 480 );
// Finally start the main loop:
w->run ();
}
示例3: main
//==========================================================================
// Main routine
//==========================================================================
int main ( int argc, char** argv )
{
// Init freeglut library:
glutInit ( &argc, argv );
#if defined __APPLE__
glutInitDisplayMode ( GLUT_3_2_CORE_PROFILE | GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH );
#else
glutInitDisplayMode ( GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH );
glutInitContextProfile ( GLUT_CORE_PROFILE );
#endif
// Now create the window of your application:
AppWindow* w = new AppWindow ( "GlutApp3D CSE 170 Support Code", 300, 300, 640, 480 );
// Finally start the main loop:
w->run ();
}
示例4: main
int main(int argc, char** argv)
{
// Construct our main loop
Gtk::Main kit(argc, argv);
// Initialize OpenGL
Gtk::GL::init(argc, argv);
std::string pcf = "pc.lua";
SceneNode* pc = import_lua(pcf);
// Construct our (only) window
AppWindow window;
window.m_game->pc.scene = pc;
window.run();
// And run the application!
Gtk::Main::run(window);
}