Changeset 6916
- Timestamp:
- 06/08/07 17:37:20
- Files:
-
- OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osghud/osghud.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osglight/osglight.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osglogicop/osglogicop.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgmotionblur/osgmotionblur.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgmultitexture/osgmultitexture.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgoccluder/osgoccluder.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgpick/osgpick.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgreflect/osgreflect.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgscribe/osgscribe.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgsimplifier/osgsimplifier.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgtexture1D/osgtexture1D.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgwindows/osgwindows.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp
r6908 r6916 652 652 653 653 // if not loaded assume no arguments passed in, try use default mode instead. 654 if (!loadedModel) loadedModel = osgDB::readNodeFile("c essnafire.osg");654 if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 655 655 656 656 if (!loadedModel) OpenSceneGraph/trunk/examples/osghud/osghud.cpp
r6263 r6916 192 192 osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 193 193 194 // if not loaded assume no arguments passed in, try use default mode instead. 195 if (!scene) scene = osgDB::readNodeFile("dumptruck.osg"); 196 197 194 198 if (!scene) 195 199 { OpenSceneGraph/trunk/examples/osglight/osglight.cpp
r6051 r6916 308 308 // load the nodes from the commandline arguments. 309 309 osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 310 310 311 // if not loaded assume no arguments passed in, try use default mode instead. 312 if (!loadedModel) loadedModel = osgDB::readNodeFile("glider.osg"); 313 311 314 // create a room made of foor walls, a floor, a roof, and swinging light fitting. 312 315 osg::Node* rootnode = createRoom(loadedModel); OpenSceneGraph/trunk/examples/osglogicop/osglogicop.cpp
r5927 r6916 126 126 // load the nodes from the commandline arguments. 127 127 osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 128 129 // if not loaded assume no arguments passed in, try use default mode instead. 130 if (!loadedModel) loadedModel = osgDB::readNodeFile("glider.osg"); 131 128 132 if (!loadedModel) 129 133 { OpenSceneGraph/trunk/examples/osgmotionblur/osgmotionblur.cpp
r6088 r6916 89 89 // read the scene from the list of file specified commandline args. 90 90 osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 91 92 // if not loaded assume no arguments passed in, try use default mode instead. 93 if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 91 94 92 95 // if no model has been successfully loaded report failure. OpenSceneGraph/trunk/examples/osgmultitexture/osgmultitexture.cpp
r5927 r6916 28 28 // load the nodes from the commandline arguments. 29 29 osg::Node* rootnode = osgDB::readNodeFiles(arguments); 30 31 // if not loaded assume no arguments passed in, try use default mode instead. 32 if (!rootnode) rootnode = osgDB::readNodeFile("cessnafire.osg"); 33 30 34 if (!rootnode) 31 35 { OpenSceneGraph/trunk/examples/osgoccluder/osgoccluder.cpp
r5951 r6916 298 298 // load the nodes from the commandline arguments. 299 299 osg::Node* loadedmodel = osgDB::readNodeFiles(arguments); 300 301 // if not loaded assume no arguments passed in, try use default mode instead. 302 if (!loadedmodel) loadedmodel = osgDB::readNodeFile("glider.osg"); 303 300 304 if (!loadedmodel) 301 305 { OpenSceneGraph/trunk/examples/osgpick/osgpick.cpp
r6183 r6916 214 214 // read the scene from the list of file specified commandline args. 215 215 osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 216 217 // if not loaded assume no arguments passed in, try use default mode instead. 218 if (!scene) scene = osgDB::readNodeFile("fountain.osg"); 216 219 217 220 osg::ref_ptr<osg::Group> group = dynamic_cast<osg::Group*>(scene.get()); OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp
r6051 r6916 421 421 // load the nodes from the commandline arguments. 422 422 osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 423 424 // if not loaded assume no arguments passed in, try use default mode instead. 425 if (!loadedModel) loadedModel = osgDB::readNodeFile("cessna.osg"); 426 423 427 if (!loadedModel) 424 428 { OpenSceneGraph/trunk/examples/osgreflect/osgreflect.cpp
r6163 r6916 332 332 // read the scene from the list of file specified commandline args. 333 333 osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 334 335 // if not loaded assume no arguments passed in, try use default mode instead. 336 if (!loadedModel) loadedModel = osgDB::readNodeFile("cessna.osg"); 334 337 335 338 // if no model has been successfully loaded report failure. OpenSceneGraph/trunk/examples/osgscribe/osgscribe.cpp
r5954 r6916 24 24 // load the nodes from the commandline arguments. 25 25 osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 26 27 // if not loaded assume no arguments passed in, try use default mode instead. 28 if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 29 26 30 if (!loadedModel) 27 31 { OpenSceneGraph/trunk/examples/osgsimplifier/osgsimplifier.cpp
r5959 r6916 94 94 // read the scene from the list of file specified commandline args. 95 95 osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 96 96 97 // if not loaded assume no arguments passed in, try use default mode instead. 98 if (!loadedModel) loadedModel = osgDB::readNodeFile("dumptruck.osg"); 99 97 100 // if no model has been successfully loaded report failure. 98 101 if (!loadedModel) OpenSceneGraph/trunk/examples/osgtexture1D/osgtexture1D.cpp
r6051 r6916 150 150 // load the images specified on command line 151 151 osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 152 153 // if not loaded assume no arguments passed in, try use default mode instead. 154 if (!loadedModel) loadedModel = osgDB::readNodeFile("dumptruck.osg"); 152 155 153 156 if (!loadedModel) OpenSceneGraph/trunk/examples/osgwindows/osgwindows.cpp
r5964 r6916 23 23 osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 24 24 25 // if not loaded assume no arguments passed in, try use default mode instead. 26 if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 27 25 28 // if no model has been successfully loaded report failure. 26 29 if (!loadedModel)
