Show
Ignore:
Timestamp:
11/27/06 15:52:07 (8 years ago)
Author:
robert
Message:

Renamed osg::CameraNode? to osg::Camera, cleaned up osg::View.

Added beginnings of new osgViewer::Scene,View,Viewer,CompositeViewer? and GraphicsWindowProxy? files.

Files:
1 modified

Legend:

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

    r5381 r5757  
    2222#include <osg/PolygonOffset> 
    2323#include <osg/MatrixTransform> 
    24 #include <osg/CameraNode> 
     24#include <osg/Camera> 
    2525 
    2626#include <osgText/Text> 
     
    7070        text->setFont(timesFont); 
    7171        text->setPosition(position); 
    72         text->setText("Then place an osg::CameraNode above the subgraph\n" 
     72        text->setText("Then place an osg::Camera above the subgraph\n" 
    7373                      "to create an orthographic projection.\n"); 
    7474         
     
    8282        text->setFont(timesFont); 
    8383        text->setPosition(position); 
    84         text->setText("Set the CameraNode's ReferenceFrame to ABSOLUTE_RF to ensure\n" 
     84        text->setText("Set the Camera's ReferenceFrame to ABSOLUTE_RF to ensure\n" 
    8585                      "it remains independent from any external model view matrices."); 
    8686         
     
    9494        text->setFont(timesFont); 
    9595        text->setPosition(position); 
    96         text->setText("And set the CameraNode'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 CameraNode'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" 
    108108                      "to make sure its drawn last."); 
    109109         
     
    149149    } 
    150150 
    151     osg::CameraNode* camera = new osg::CameraNode; 
     151    osg::Camera* camera = new osg::Camera; 
    152152 
    153153    // set the projection matrix 
     
    162162 
    163163    // draw subgraph after main camera view. 
    164     camera->setRenderOrder(osg::CameraNode::POST_RENDER); 
     164    camera->setRenderOrder(osg::Camera::POST_RENDER); 
    165165 
    166166    camera->addChild(geode);