*** empty log message ***
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
namespace osgUtil {
|
||||
|
||||
|
||||
// beginings of a replacement for DrawBin.
|
||||
|
||||
class OSGUTIL_EXPORT RenderGraph : public osg::Referenced
|
||||
{
|
||||
public:
|
||||
@@ -51,7 +49,7 @@ class OSGUTIL_EXPORT RenderGraph : public osg::Referenced
|
||||
~RenderGraph() {}
|
||||
|
||||
|
||||
/** return true if all of drawables, lights and chilren are empty.*/
|
||||
/** return true if all of drawables, lights and children are empty.*/
|
||||
inline const bool empty() const
|
||||
{
|
||||
return _leaves.empty() && _children.empty();
|
||||
@@ -79,7 +77,7 @@ class OSGUTIL_EXPORT RenderGraph : public osg::Referenced
|
||||
ChildList::iterator itr = _children.find(stateset);
|
||||
if (itr!=_children.end()) return itr->second.get();
|
||||
|
||||
// create a state group and insert it into the chilren list
|
||||
// create a state group and insert it into the children list
|
||||
// then return the state group.
|
||||
RenderGraph* sg = new RenderGraph(this,stateset);
|
||||
_children[stateset] = sg;
|
||||
@@ -137,7 +135,7 @@ class OSGUTIL_EXPORT RenderGraph : public osg::Referenced
|
||||
}
|
||||
|
||||
|
||||
// need to pop back upto the same depth as the new state group.
|
||||
// need to pop back up to the same depth as the new state group.
|
||||
while (sg_curr->_depth>sg_new->_depth)
|
||||
{
|
||||
if (sg_curr->_stateset.valid()) state.popStateSet();
|
||||
@@ -147,7 +145,7 @@ class OSGUTIL_EXPORT RenderGraph : public osg::Referenced
|
||||
// use return path to trace back steps to sg_new.
|
||||
std::vector<RenderGraph*> return_path;
|
||||
|
||||
// need to pop back upto the same depth as the curr state group.
|
||||
// need to pop back up to the same depth as the curr state group.
|
||||
while (sg_new->_depth>sg_curr->_depth)
|
||||
{
|
||||
return_path.push_back(sg_new);
|
||||
|
||||
Reference in New Issue
Block a user