Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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
|
||||
* 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
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
namespace osgUtil {
|
||||
|
||||
/** Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag,
|
||||
/** Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag,
|
||||
* with option to immediately compile osg::Drawable OpenGL Display lists and
|
||||
* osg::StateAttribute's.
|
||||
*/
|
||||
@@ -44,38 +44,38 @@ class OSGUTIL_EXPORT GLObjectsVisitor : public osg::NodeVisitor
|
||||
SWITCH_OFF_VERTEX_BUFFER_OBJECTS = 0x80,
|
||||
CHECK_BLACK_LISTED_MODES = 0x100
|
||||
};
|
||||
|
||||
|
||||
typedef unsigned int Mode;
|
||||
|
||||
/** Construct a GLObjectsVisitor to traverse all children, operating on
|
||||
* node according to specified mode, such as to compile or release
|
||||
* display list/texture objects etc. Default mode is to compile
|
||||
* node according to specified mode, such as to compile or release
|
||||
* display list/texture objects etc. Default mode is to compile
|
||||
* GL objects.
|
||||
*/
|
||||
GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES);
|
||||
|
||||
GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES);
|
||||
|
||||
META_NodeVisitor("osg","GLObjectsVisitor")
|
||||
|
||||
|
||||
virtual void reset()
|
||||
{
|
||||
_drawablesAppliedSet.clear();
|
||||
_stateSetAppliedSet.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Set the operational mode of what operations to do on the scene graph.*/
|
||||
void setMode(Mode mode) { _mode = mode; }
|
||||
|
||||
/** Get the operational mode.*/
|
||||
Mode getMode() const { return _mode; }
|
||||
|
||||
|
||||
|
||||
/** Set the State to use during traversal. */
|
||||
void setState(osg::State* state)
|
||||
{
|
||||
_renderInfo.setState(state);
|
||||
}
|
||||
|
||||
|
||||
osg::State* getState()
|
||||
{
|
||||
return _renderInfo.getState();
|
||||
@@ -85,7 +85,7 @@ class OSGUTIL_EXPORT GLObjectsVisitor : public osg::NodeVisitor
|
||||
{
|
||||
_renderInfo = renderInfo;
|
||||
}
|
||||
|
||||
|
||||
osg::RenderInfo& getRenderInfo()
|
||||
{
|
||||
return _renderInfo;
|
||||
@@ -93,8 +93,8 @@ class OSGUTIL_EXPORT GLObjectsVisitor : public osg::NodeVisitor
|
||||
|
||||
/** Simply traverse using standard NodeVisitor traverse method.*/
|
||||
virtual void apply(osg::Node& node);
|
||||
|
||||
/** For each Geode visited set the display list usage according to the
|
||||
|
||||
/** For each Geode visited set the display list usage according to the
|
||||
* _displayListMode.
|
||||
*/
|
||||
virtual void apply(osg::Geode& node);
|
||||
@@ -124,9 +124,9 @@ class OSGUTIL_EXPORT GLObjectsOperation : public osg::GraphicsOperation
|
||||
GLObjectsOperation(osg::Node* subgraph, GLObjectsVisitor::Mode mode = GLObjectsVisitor::COMPILE_DISPLAY_LISTS|GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|GLObjectsVisitor::CHECK_BLACK_LISTED_MODES);
|
||||
|
||||
virtual void operator () (osg::GraphicsContext* context);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
osg::ref_ptr<osg::Node> _subgraph;
|
||||
GLObjectsVisitor::Mode _mode;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user