Added getCurrentCamera/getCurrentRenderStage methods
This commit is contained in:
parent
6915bce1a2
commit
2cf44741d7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user