//========================================================================== // 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 (); }
//========================================================================== // 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 (); }
//========================================================================== // 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 (); }
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); }