Changeset 5757 for OpenSceneGraph/trunk/examples/osghud/osghud.cpp
- Timestamp:
- 11/27/06 15:52:07 (6 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osghud/osghud.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osghud/osghud.cpp
r5381 r5757 22 22 #include <osg/PolygonOffset> 23 23 #include <osg/MatrixTransform> 24 #include <osg/Camera Node>24 #include <osg/Camera> 25 25 26 26 #include <osgText/Text> … … 70 70 text->setFont(timesFont); 71 71 text->setPosition(position); 72 text->setText("Then place an osg::Camera Nodeabove the subgraph\n"72 text->setText("Then place an osg::Camera above the subgraph\n" 73 73 "to create an orthographic projection.\n"); 74 74 … … 82 82 text->setFont(timesFont); 83 83 text->setPosition(position); 84 text->setText("Set the Camera Node's ReferenceFrame to ABSOLUTE_RF to ensure\n"84 text->setText("Set the Camera's ReferenceFrame to ABSOLUTE_RF to ensure\n" 85 85 "it remains independent from any external model view matrices."); 86 86 … … 94 94 text->setFont(timesFont); 95 95 text->setPosition(position); 96 text->setText("And set the Camera Node's clear mask to just clear the depth buffer.");97 98 position += delta; 99 } 100 101 { 102 osgText::Text* text = new osgText::Text; 103 geode->addDrawable( text ); 104 105 text->setFont(timesFont); 106 text->setPosition(position); 107 text->setText("And finally set the Camera Node's RenderOrder to POST_RENDER\n"96 text->setText("And set the Camera's clear mask to just clear the depth buffer."); 97 98 position += delta; 99 } 100 101 { 102 osgText::Text* text = new osgText::Text; 103 geode->addDrawable( text ); 104 105 text->setFont(timesFont); 106 text->setPosition(position); 107 text->setText("And finally set the Camera's RenderOrder to POST_RENDER\n" 108 108 "to make sure its drawn last."); 109 109 … … 149 149 } 150 150 151 osg::Camera Node* camera = new osg::CameraNode;151 osg::Camera* camera = new osg::Camera; 152 152 153 153 // set the projection matrix … … 162 162 163 163 // draw subgraph after main camera view. 164 camera->setRenderOrder(osg::Camera Node::POST_RENDER);164 camera->setRenderOrder(osg::Camera::POST_RENDER); 165 165 166 166 camera->addChild(geode);
