Public Member Functions | |
META_Node (osgPPU, UnitCamera) | |
UnitCamera (const UnitCamera &u, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
void | setCamera (osg::Camera *camera, bool addAsChild=false) |
osg::Camera * | getCamera () |
Get camera object used. | |
Protected Attributes | |
osg::ref_ptr< osg::Camera > | mCamera |
bool | mUseCameraAsChild |
This unit is very useful when you want to include camera directly into the unit pipeline. Camera is attached to this unit and its output can be accessed through UnitCameraAttachmentBypass unit. This allows direct including of multiple camera's outputs into the unit pipeline.
void osgPPU::UnitCamera::setCamera | ( | osg::Camera * | camera, | |
bool | addAsChild = false | |||
) |
Set camera which output is to be included into the pipeline.
camera | Camera pointer | |
addAsChild | If true camera will be added as child of this unit, which give the possibility to traversals also on the camera object without need of including the camera somehwere else in the scene graph. |
Copyright (C) 2008 by Art Tevs (LGPL)