Changeset 19932
- Timestamp:
- 04/09/07 22:01:07 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vrjuggler/samples/OpenSG/advanced/OpenSGViewer/app.cpp
r19729 r19932 33 33 OpenSGViewer* application = new OpenSGViewer(kernel); 34 34 35 if (argc <= 2) 35 #if ! defined(VRJ_USE_COCOA) 36 if ( argc <= 2 ) 36 37 { 37 38 std::cout << "\n\nUsage: " << argv[0] << " modelname vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]\n" << std::flush; 38 39 exit(1); 39 40 } 41 #endif 40 42 41 43 application->setModelFileName(std::string(argv[1])); 42 44 43 45 // Load any config files specified on the command line 44 for(int i=2;i<argc;i++) 46 for ( int i = 2; i < argc; ++i ) 47 { 45 48 kernel->loadConfigFile(argv[i]); 46 49 } 50 47 51 kernel->start(); 48 52 kernel->setApplication(application); juggler/trunk/modules/vrjuggler/samples/OpenSG/simple/OpenSGNav/app.cpp
r19729 r19932 34 34 OpenSGNav* application = new OpenSGNav(kernel); 35 35 36 if (argc <= 2) 36 #if ! defined(VRJ_USE_COCOA) 37 if ( argc <= 2 ) 37 38 { 38 39 std::cout << "\n\nUsage: " << argv[0] … … 41 42 exit(1); 42 43 } 44 #endif 43 45 44 46 application->setModelFileName(std::string(argv[1]));
