From Michael Platings and Robert Osfield, added support for controlling,

via StateSet::setNestedRenderBin(bool) whether the new RenderBin should be nested
with the existing RenderBin, or be nested with the enclosing RenderStage.
This commit is contained in:
Robert Osfield
2008-06-19 11:09:20 +00:00
parent 0abf539b60
commit 174f9bbfe0
5 changed files with 50 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
@@ -81,7 +81,8 @@ bool osg::isTextureMode(StateAttribute::GLMode mode)
}
StateSet::StateSet():
Object(true)
Object(true),
_nestRenderBins(true)
{
_renderingHint = DEFAULT_BIN;
@@ -91,7 +92,8 @@ StateSet::StateSet():
setRenderBinToInherit();
}
StateSet::StateSet(const StateSet& rhs,const CopyOp& copyop):Object(rhs,copyop)
StateSet::StateSet(const StateSet& rhs,const CopyOp& copyop):Object(rhs,copyop),
_nestRenderBins(rhs._nestRenderBins)
{
_modeList = rhs._modeList;