1 #ifndef OPENMW_COMPONENTS_SCENEUTIL_STATESETCONTROLLER_H
2 #define OPENMW_COMPONENTS_SCENEUTIL_STATESETCONTROLLER_H
4 #include <osg/NodeCallback>
27 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
32 virtual void apply(osg::StateSet* stateset, osg::NodeVisitor* nv) {}
55 unsigned int getNumControllers();
60 virtual void apply(osg::StateSet* stateset, osg::NodeVisitor* nv);
66 std::vector<osg::ref_ptr<StateSetUpdater> >
mCtrls;
std::vector< osg::ref_ptr< StateSetUpdater > > mCtrls
Definition: statesetupdater.hpp:66
A variant of the StateSetController that can be made up of multiple controllers all controlling the s...
Definition: statesetupdater.hpp:47
void reset()
Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if ne...
Definition: statesetupdater.cpp:31
void addController(StateSetUpdater *ctrl)
Definition: statesetupdater.cpp:81
Implements efficient per-frame updating of StateSets.
Definition: statesetupdater.hpp:19
virtual void setDefaults(osg::StateSet *stateset)
Definition: statesetupdater.cpp:54
StateSetUpdater * getController(int i)
Definition: statesetupdater.cpp:76
CompositeStateSetUpdater()
Definition: statesetupdater.cpp:60
virtual META_Object(SceneUtil, StateSetUpdater) virtual void operator()(osg apply(osg::StateSet *stateset, osg::NodeVisitor *nv) void
Definition: statesetupdater.hpp:32
virtual void setDefaults(osg::StateSet *stateset)
Definition: statesetupdater.hpp:36
osg::ref_ptr< osg::StateSet > mStateSets[2]
Definition: statesetupdater.hpp:43
StateSetUpdater()
Definition: statesetupdater.cpp:37
META_Object(SceneUtil, CompositeStateSetUpdater) unsigned int getNumControllers()
virtual void apply(osg::StateSet *stateset, osg::NodeVisitor *nv)
Definition: statesetupdater.cpp:48