Added osg::RenderInfo::pushRenderBin()/popRenderBin() and RenderInfo::getRenderBinStack() and getCameraStack() access methods for getting access to the current RenderBin/RenderStage.
This commit is contained in:
@@ -421,11 +421,15 @@ RenderBin* RenderBin::find_or_insert(int binNum,const std::string& binName)
|
||||
|
||||
void RenderBin::draw(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
|
||||
{
|
||||
renderInfo.pushRenderBin(this);
|
||||
|
||||
if (_drawCallback.valid())
|
||||
{
|
||||
_drawCallback->drawImplementation(this,renderInfo,previous);
|
||||
}
|
||||
else drawImplementation(renderInfo,previous);
|
||||
|
||||
renderInfo.popRenderBin();
|
||||
}
|
||||
|
||||
void RenderBin::drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
|
||||
|
||||
Reference in New Issue
Block a user