Added getCurrentCamera/getCurrentRenderStage methods

This commit is contained in:
Robert Osfield 2008-07-24 12:47:55 +00:00
parent 6915bce1a2
commit 2cf44741d7

View File

@ -172,6 +172,16 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor, public osg::CullStac
return _rootRenderStage.get();
}
inline RenderStage* getCurrentRenderStage()
{
return _currentRenderBin->getStage();
}
inline osg::Camera* getCurrentCamera()
{
return getCurrentRenderStage()->getCamera();
}
inline RenderBin* getCurrentRenderBin()
{
return _currentRenderBin;