- Timestamp:
- 04/16/08 02:25:38 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/Contrib/BackgroundLoader/testBackgroundLoader.cpp
r790 r1169 27 27 // The SimpleSceneManager to manage simple applications 28 28 SimpleSceneManager *mgr; 29 GroupNode Ptr gScene;29 GroupNodeRefPtr gScene; 30 30 31 31 unsigned gNextModelIdx = 0; … … 64 64 { 65 65 std::cerr << "ERROR: path does not exist: " << dirname << std::endl; 66 gScene = NodePtr(NullFC); 67 osgExit(); 66 68 exit(-1); 67 69 } … … 92 94 osgInit(argc,argv); 93 95 94 gScene = GroupNode Ptr::create();96 gScene = GroupNodeRefPtr::create(); 95 97 96 98 if (argc < 2) 97 99 { 98 100 std::cout << "Specify a directory to load models from." << std::endl; 101 gScene = NodePtr(NullFC); 102 osgExit(); 99 103 exit(-1); 100 104 } … … 109 113 110 114 // the connection between GLUT and OpenSG 111 GLUTWindow Ptr gwin= GLUTWindow::create();115 GLUTWindowUnrecPtr gwin= GLUTWindow::create(); 112 116 gwin->setGlutId(winid); 113 117 gwin->init(); … … 182 186 case 27: 183 187 { 188 delete mgr; 189 gScene = NodePtr(NullFC); 184 190 OSG::osgExit(); 185 191 exit(0);
