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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user