Show
Ignore:
Timestamp:
11/27/06 15:52:07 (7 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/osgdistortion/osgdistortion.cpp

    r5381 r5757  
    4040    // set up the render to texture camera. 
    4141    { 
    42         osg::CameraNode* camera = new osg::CameraNode; 
     42        osg::Camera* camera = new osg::Camera; 
    4343 
    4444        // set clear the color and depth buffer 
     
    5555 
    5656        // set the camera to render before the main camera. 
    57         camera->setRenderOrder(osg::CameraNode::PRE_RENDER); 
     57        camera->setRenderOrder(osg::Camera::PRE_RENDER); 
    5858 
    5959        // tell the camera to use OpenGL frame buffer object where supported. 
    60         camera->setRenderTargetImplementation(osg::CameraNode::FRAME_BUFFER_OBJECT); 
     60        camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); 
    6161 
    6262        // attach the texture and use it as the color buffer. 
    63         camera->attach(osg::CameraNode::COLOR_BUFFER, texture); 
     63        camera->attach(osg::Camera::COLOR_BUFFER, texture); 
    6464 
    6565        // add subgraph to render 
     
    146146 
    147147        // set up the camera to render the textured quad 
    148         osg::CameraNode* camera = new osg::CameraNode; 
     148        osg::Camera* camera = new osg::Camera; 
    149149 
    150150        // just inherit the main cameras view 
     
    154154 
    155155        // set the camera to render before the main camera. 
    156         camera->setRenderOrder(osg::CameraNode::NESTED_RENDER); 
     156        camera->setRenderOrder(osg::Camera::NESTED_RENDER); 
    157157 
    158158        // tell the camera to use OpenGL frame buffer object where supported. 
    159         camera->setRenderTargetImplementation(osg::CameraNode::FRAME_BUFFER_OBJECT); 
     159        camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); 
    160160 
    161161        // attach the texture and use it as the color buffer. 
    162         camera->attach(osg::CameraNode::COLOR_BUFFER, texture); 
     162        camera->attach(osg::Camera::COLOR_BUFFER, texture); 
    163163 
    164164        // add subgraph to render