Added Camera::isRenderToTextureCamera() method, and improved support in PickVisitor

and IntersectVisitor for CameraNode, including the ignoring of render to texture cameras,
such that HUD's etc are still intersected against.
This commit is contained in:
Robert Osfield
2005-12-07 11:36:56 +00:00
parent 99be2cdb7f
commit 3f3c7b1df8
5 changed files with 25 additions and 14 deletions

View File

@@ -92,7 +92,6 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
void setTransformOrder(TransformOrder order) { _transformOrder = order; }
TransformOrder getTransformOrder() const { return _transformOrder; }
/** Set the projection matrix. Can be thought of as setting the lens of a camera. */
inline void setProjectionMatrix(const osg::Matrixf& matrix) { _projectionMatrix.set(matrix); }
@@ -184,6 +183,9 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
/** Get the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within.*/
RenderOrder getRenderOrder() const { return _renderOrder; }
/** Return true if this Camera is set up as a render to texture camera, i.e. it has textures assigned to it.*/
bool isRenderToTextureCamera() const;
enum RenderTargetImplementation
{
FRAME_BUFFER_OBJECT,