Changeset 20941
- Timestamp:
- 11/21/07 22:12:29 (1 year ago)
- Files:
-
- juggler/trunk/modules/vrjuggler/samples/OGL/advanced/glove/main.cpp (modified) (2 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/advanced/navgrab/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/ext/proceduralApp/main.cpp (modified) (2 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/simple/ConfigApp/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/simple/MPApp/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/simple/SimpleApp/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/simple/contextApp/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OGL/simple/simpleInput/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OSG/advanced/OSGNavGrab/main.cpp (modified) (4 diffs)
- juggler/trunk/modules/vrjuggler/samples/OSG/simple/osgNav/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OpenSG/advanced/OpenSGNavGrab/app.cpp (modified) (2 diffs)
- juggler/trunk/modules/vrjuggler/samples/OpenSG/advanced/OpenSGViewer/app.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/OpenSG/simple/OpenSGNav/app.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/Pf/advanced/pfConfigNav/pfBasicConfigNav.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/Pf/advanced/pfNav/pfNav.cpp (modified) (4 diffs)
- juggler/trunk/modules/vrjuggler/samples/Pf/simple/simplePf/main.cpp (modified) (4 diffs)
- juggler/trunk/modules/vrjuggler/samples/sound/simple/sonix/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/sound/simple/soundManager/main.cpp (modified) (3 diffs)
- juggler/trunk/modules/vrjuggler/samples/speech/simple/SpeechRecogApp/main.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vrjuggler/samples/OGL/advanced/glove/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //---------------------------------------- 28 // Test OpenGL VR Juggler program 29 // 30 // main.cpp 31 //---------------------------------------- 27 #include <cstdlib> 32 28 #include <gloveApp.h> 33 29 … … 62 58 delete application; 63 59 64 return 0;60 return EXIT_SUCCESS; 65 61 } juggler/trunk/modules/vrjuggler/samples/OGL/advanced/navgrab/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 #include <cstdlib> 27 28 #include <vrj/Kernel/Kernel.h> 28 29 #include "NavGrabApp.h" … … 45 46 } 46 47 else 48 { 47 49 kernel->loadConfigFile(argv[i]); 50 } 48 51 } 49 52 … … 60 63 delete application; 61 64 62 return 0;65 return EXIT_SUCCESS; 63 66 } juggler/trunk/modules/vrjuggler/samples/OGL/ext/proceduralApp/main.cpp
r20495 r20941 44 44 #include <iostream> 45 45 #include <iomanip> 46 #include <cstdlib> 46 47 47 48 #include <gmtl/Matrix.h> … … 98 99 #endif 99 100 100 return 0;101 return EXIT_SUCCESS; 101 102 } 102 103 juggler/trunk/modules/vrjuggler/samples/OGL/simple/ConfigApp/main.cpp
r20937 r20941 26 26 27 27 #include <iostream> 28 #include < stdlib.h>28 #include <cstdlib> 29 29 30 30 #include <vrj/Kernel/Kernel.h> … … 49 49 << " vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]" 50 50 << std::endl; 51 exit(1);51 std::exit(EXIT_FAILURE); 52 52 } 53 53 #endif … … 73 73 delete app; 74 74 75 return 0;75 return EXIT_SUCCESS; 76 76 } juggler/trunk/modules/vrjuggler/samples/OGL/simple/MPApp/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //---------------------------------------- 28 // Simple OpenGL sample application 29 // 30 // main.cpp 31 //---------------------------------------- 27 #include <cstdlib> 32 28 #include <MPApp.h> 33 29 … … 53 49 << " vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]" 54 50 << std::endl; 55 exit(1);51 std::exit(EXIT_FAILURE); 56 52 } 57 53 #endif … … 77 73 delete application; 78 74 79 return 0;75 return EXIT_SUCCESS; 80 76 } juggler/trunk/modules/vrjuggler/samples/OGL/simple/SimpleApp/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //---------------------------------------- 28 // Simple OpenGL sample application 29 // 30 // main.cpp 31 //---------------------------------------- 27 #include <cstdlib> 32 28 #include <simpleApp.h> 33 29 … … 51 47 std::cout << "\n\n"; 52 48 std::cout << "Usage: " << argv[0] << " vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]" << std::endl; 53 exit(1);49 std::exit(EXIT_FAILURE); 54 50 } 55 51 #endif … … 74 70 delete application; 75 71 76 return 0;72 return EXIT_SUCCESS; 77 73 } juggler/trunk/modules/vrjuggler/samples/OGL/simple/contextApp/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //---------------------------------------- 28 // Simple OpenGL sample application 29 // 30 // main.cpp 31 //---------------------------------------- 27 #include <cstdlib> 32 28 #include <contextApp.h> 33 29 … … 53 49 << " vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]" 54 50 << std::endl; 55 exit(1);51 std::exit(EXIT_FAILURE); 56 52 } 57 53 #endif … … 77 73 delete application; 78 74 79 return 0;75 return EXIT_SUCCESS; 80 76 } juggler/trunk/modules/vrjuggler/samples/OGL/simple/simpleInput/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //---------------------------------------- 28 // Simple input sample application 29 // 30 // main.cpp 31 //---------------------------------------- 27 #include <cstdlib> 32 28 #include <simpleInput.h> 33 29 … … 51 47 std::cout << "\n\n"; 52 48 std::cout << "Usage: " << argv[0] << " vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]" << std::endl; 53 exit(1);49 std::exit(EXIT_FAILURE); 54 50 } 55 51 #endif … … 75 71 delete application; 76 72 77 return 0;73 return EXIT_SUCCESS; 78 74 } juggler/trunk/modules/vrjuggler/samples/OSG/advanced/OSGNavGrab/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //----------------------------------------28 // Test Osg VR Juggler program29 //30 // main.cpp31 //----------------------------------------32 33 27 #include <cstdlib> 34 28 #include <OsgNavGrab.h> … … 36 30 // --- Lib Stuff --- // 37 31 #include <vrj/Kernel/Kernel.h> 32 38 33 39 34 int main(int argc, char* argv[]) … … 54 49 << std::endl << std::endl; 55 50 56 std::exit( 1);51 std::exit(EXIT_FAILURE); 57 52 } 58 53 … … 74 69 delete application; 75 70 76 return 0;71 return EXIT_SUCCESS; 77 72 } juggler/trunk/modules/vrjuggler/samples/OSG/simple/osgNav/main.cpp
r20937 r20941 24 24 * 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 27 //----------------------------------------28 // Test Osg VR Juggler program29 //30 // main.cpp31 //----------------------------------------32 26 33 27 #include <cstdlib> … … 57 51 << std::endl << std::endl; 58 52 59 std::exit( 1);53 std::exit(EXIT_FAILURE); 60 54 } 61 55 … … 77 71 delete application; 78 72 79 return 0;73 return EXIT_SUCCESS; 80 74 } juggler/trunk/modules/vrjuggler/samples/OpenSG/advanced/OpenSGNavGrab/app.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 #include <cstdlib> 27 28 #include <string> 28 29 #include <vector> … … 68 69 delete application; 69 70 70 return 0;71 return EXIT_SUCCESS; 71 72 } juggler/trunk/modules/vrjuggler/samples/OpenSG/advanced/OpenSGViewer/app.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 #include <cstdlib> 27 28 #include <vrj/Kernel/Kernel.h> 28 29 #include <OpenSGViewer.h> 30 29 31 30 32 int main(int argc, char* argv[]) … … 37 39 { 38 40 std::cout << "\n\nUsage: " << argv[0] << " modelname vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]\n" << std::flush; 39 exit(1);41 std::exit(EXIT_FAILURE); 40 42 } 41 43 #endif … … 55 57 kernel->waitForKernelStop(); 56 58 57 return 1;59 return EXIT_SUCCESS; 58 60 } 59 61 juggler/trunk/modules/vrjuggler/samples/OpenSG/simple/OpenSGNav/app.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 #include <cstdlib> 27 28 #include <OpenSGNav.h> 28 29 29 30 #include <vrj/Kernel/Kernel.h> 31 30 32 31 33 int main(int argc, char* argv[]) … … 40 42 << " modelname vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]\n" 41 43 << std::flush; 42 exit(1);44 std::exit(EXIT_FAILURE); 43 45 } 44 46 #endif … … 60 62 delete application; 61 63 62 return 0;64 return EXIT_SUCCESS; 63 65 } juggler/trunk/modules/vrjuggler/samples/Pf/advanced/pfConfigNav/pfBasicConfigNav.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 #include <cstdlib> 28 27 29 // --- VR Juggler Stuff --- // 28 30 #include <vrj/Kernel/Kernel.h> 29 31 #include <pfBasicConfigNavApp.h> 32 30 33 31 34 int main(int argc, char* argv[]) … … 41 44 for ( int i = 1; i < argc; i++ ) 42 45 { 43 kernel->loadConfigFile(argv[i]);46 kernel->loadConfigFile(argv[i]); 44 47 } 45 48 … … 55 58 pfExit(); 56 59 57 return 0;60 return EXIT_SUCCESS; 58 61 } juggler/trunk/modules/vrjuggler/samples/Pf/advanced/pfNav/pfNav.cpp
r20937 r20941 26 26 27 27 #include <iostream> 28 #include <cstdlib> 28 29 #include <string> 29 30 … … 33 34 #include <vrj/Kernel/Kernel.h> 34 35 #include <simplePfNavApp.h> 36 35 37 36 38 void usage(char** argv) … … 62 64 std::cout << "\n\n[ERROR!!!] you must supply a model database followed " 63 65 << "by VR Juggler config files." << std::endl; 64 return 1;66 return EXIT_FAILURE; 65 67 } 66 68 … … 107 109 pfExit(); 108 110 109 return 0;111 return EXIT_SUCCESS; 110 112 } juggler/trunk/modules/vrjuggler/samples/Pf/simple/simplePf/main.cpp
r20937 r20941 26 26 27 27 #include <iostream> 28 #include <cstdlib> 28 29 #include <string> 29 30 … … 31 32 #include <vrj/Kernel/Kernel.h> 32 33 #include <simplePfApp.h> 34 33 35 34 36 using namespace vrj; … … 55 57 std::cout << "\n\n[ERROR!!!] you must supply a model database followed " 56 58 << "by VR Juggler config files." << std::endl; 57 return 1;59 return EXIT_FAILURE; 58 60 } 59 61 else if ( argc < 3 ) … … 92 94 pfExit(); 93 95 94 return 0;96 return EXIT_SUCCESS; 95 97 } juggler/trunk/modules/vrjuggler/samples/sound/simple/sonix/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //----------------------------------------28 // Test OpenGL VR Juggler program29 //30 // main.cpp31 //----------------------------------------32 27 #include <iostream> 33 #include < stdlib.h>28 #include <cstdlib> 34 29 #include <sonixApp.h> 35 30 … … 54 49 << std::flush; 55 50 std::cout << "\n\n" << std::flush; 56 exit(1);51 std::exit(EXIT_FAILURE); 57 52 } 58 53 #endif … … 72 67 delete application; 73 68 74 return 0;69 return EXIT_SUCCESS; 75 70 } juggler/trunk/modules/vrjuggler/samples/sound/simple/soundManager/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //----------------------------------------28 // Test OpenGL VR Juggler program29 //30 // main.cpp31 //----------------------------------------32 27 #include <iostream> 33 #include < stdlib.h>28 #include <cstdlib> 34 29 #include <soundManagerApp.h> 35 30 … … 54 49 << std::flush; 55 50 std::cout << "\n\n" << std::flush; 56 exit(1);51 std::exit(EXIT_FAILURE); 57 52 } 58 53 #endif … … 74 69 delete application; 75 70 76 return 0;71 return EXIT_SUCCESS; 77 72 } juggler/trunk/modules/vrjuggler/samples/speech/simple/SpeechRecogApp/main.cpp
r20937 r20941 25 25 *************** <auto-copyright.pl END do not edit this line> ***************/ 26 26 27 //---------------------------------------- 28 // Simple OpenGL sample application 29 // 30 // main.cpp 31 //---------------------------------------- 27 #include <cstdlib> 32 28 #include <SpeechRecogApp.h> 33 29 … … 50 46 std::cout << "\n\n"; 51 47 std::cout << "Usage: " << argv[0] << " vjconfigfile[0] vjconfigfile[1] ... vjconfigfile[n]" << std::endl; 52 exit(1);48 std::exit(EXIT_FAILURE); 53 49 } 54 50 … … 72 68 delete application; 73 69 74 return 0;70 return EXIT_SUCCESS; 75 71 }
