Changeset 10248 for OpenSceneGraph/trunk/examples/osghud/osghud.cpp
- Timestamp:
- 05/19/09 17:11:49 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osghud/osghud.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osghud/osghud.cpp
r9459 r10248 41 41 osg::Camera* createHUD() 42 42 { 43 // create a camera to set up the projection and model view matrices, and the subgraph to draw nin the HUD43 // create a camera to set up the projection and model view matrices, and the subgraph to draw in the HUD 44 44 osg::Camera* camera = new osg::Camera; 45 45 … … 69 69 std::string timesFont("fonts/arial.ttf"); 70 70 71 // turn lighting off for the text and disable depth test to ensure it s always ontop.71 // turn lighting off for the text and disable depth test to ensure it's always ontop. 72 72 osg::StateSet* stateset = geode->getOrCreateStateSet(); 73 73 stateset->setMode(GL_LIGHTING,osg::StateAttribute::OFF); … … 142 142 text->setPosition(position); 143 143 text->setText("And finally set the Camera's RenderOrder to POST_RENDER\n" 144 "to make sure it s drawn last.");144 "to make sure it's drawn last."); 145 145 146 146 position += delta; … … 275 275 osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 276 276 277 // if not loaded assume no arguments passed in, try use default mode instead.277 // if not loaded assume no arguments passed in, try use default model instead. 278 278 if (!scene) scene = osgDB::readNodeFile("dumptruck.osg"); 279 279 … … 302 302 osg::Camera* hudCamera = createHUD(); 303 303 304 // set up cameras to render ingon the first window available.304 // set up cameras to render on the first window available. 305 305 hudCamera->setGraphicsContext(windows[0]); 306 306 hudCamera->setViewport(0,0,windows[0]->getTraits()->width, windows[0]->getTraits()->height); … … 336 336 osg::Camera* hudCamera = createHUD(); 337 337 338 // set up cameras to render ingon the first window available.338 // set up cameras to render on the first window available. 339 339 hudCamera->setGraphicsContext(windows[0]); 340 340 hudCamera->setViewport(0,0,windows[0]->getTraits()->width, windows[0]->getTraits()->height);
