Show
Ignore:
Timestamp:
05/19/09 17:11:49 (6 years ago)
Author:
robert
Message:

Fixed typo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osghud/osghud.cpp

    r9459 r10248  
    4141osg::Camera* createHUD() 
    4242{ 
    43     // create a camera to set up the projection and model view matrices, and the subgraph to drawn in the HUD 
     43    // create a camera to set up the projection and model view matrices, and the subgraph to draw in the HUD 
    4444    osg::Camera* camera = new osg::Camera; 
    4545 
     
    6969        std::string timesFont("fonts/arial.ttf"); 
    7070 
    71         // turn lighting off for the text and disable depth test to ensure its always ontop. 
     71        // turn lighting off for the text and disable depth test to ensure it's always ontop. 
    7272        osg::StateSet* stateset = geode->getOrCreateStateSet(); 
    7373        stateset->setMode(GL_LIGHTING,osg::StateAttribute::OFF); 
     
    142142            text->setPosition(position); 
    143143            text->setText("And finally set the Camera's RenderOrder to POST_RENDER\n" 
    144                           "to make sure its drawn last."); 
     144                          "to make sure it's drawn last."); 
    145145 
    146146            position += delta; 
     
    275275    osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 
    276276     
    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. 
    278278    if (!scene) scene = osgDB::readNodeFile("dumptruck.osg"); 
    279279     
     
    302302        osg::Camera* hudCamera = createHUD(); 
    303303         
    304         // set up cameras to rendering on the first window available. 
     304        // set up cameras to render on the first window available. 
    305305        hudCamera->setGraphicsContext(windows[0]); 
    306306        hudCamera->setViewport(0,0,windows[0]->getTraits()->width, windows[0]->getTraits()->height); 
     
    336336        osg::Camera* hudCamera = createHUD(); 
    337337         
    338         // set up cameras to rendering on the first window available. 
     338        // set up cameras to render on the first window available. 
    339339        hudCamera->setGraphicsContext(windows[0]); 
    340340        hudCamera->setViewport(0,0,windows[0]->getTraits()->width, windows[0]->getTraits()->height);