- Timestamp:
- 11/27/06 15:52:07 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp
r5381 r5757 40 40 // set up the render to texture camera. 41 41 { 42 osg::Camera Node* camera = new osg::CameraNode;42 osg::Camera* camera = new osg::Camera; 43 43 44 44 // set clear the color and depth buffer … … 55 55 56 56 // set the camera to render before the main camera. 57 camera->setRenderOrder(osg::Camera Node::PRE_RENDER);57 camera->setRenderOrder(osg::Camera::PRE_RENDER); 58 58 59 59 // tell the camera to use OpenGL frame buffer object where supported. 60 camera->setRenderTargetImplementation(osg::Camera Node::FRAME_BUFFER_OBJECT);60 camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); 61 61 62 62 // attach the texture and use it as the color buffer. 63 camera->attach(osg::Camera Node::COLOR_BUFFER, texture);63 camera->attach(osg::Camera::COLOR_BUFFER, texture); 64 64 65 65 // add subgraph to render … … 146 146 147 147 // set up the camera to render the textured quad 148 osg::Camera Node* camera = new osg::CameraNode;148 osg::Camera* camera = new osg::Camera; 149 149 150 150 // just inherit the main cameras view … … 154 154 155 155 // set the camera to render before the main camera. 156 camera->setRenderOrder(osg::Camera Node::NESTED_RENDER);156 camera->setRenderOrder(osg::Camera::NESTED_RENDER); 157 157 158 158 // tell the camera to use OpenGL frame buffer object where supported. 159 camera->setRenderTargetImplementation(osg::Camera Node::FRAME_BUFFER_OBJECT);159 camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); 160 160 161 161 // attach the texture and use it as the color buffer. 162 camera->attach(osg::Camera Node::COLOR_BUFFER, texture);162 camera->attach(osg::Camera::COLOR_BUFFER, texture); 163 163 164 164 // add subgraph to render
