OpenMW
|
A variant of the StateSetController that can be made up of multiple controllers all controlling the same target. More...
#include <statesetupdater.hpp>
Public Member Functions | |
CompositeStateSetUpdater () | |
CompositeStateSetUpdater (const CompositeStateSetUpdater ©, const osg::CopyOp ©op) | |
META_Object (SceneUtil, CompositeStateSetUpdater) unsigned int getNumControllers() | |
StateSetUpdater * | getController (int i) |
void | addController (StateSetUpdater *ctrl) |
virtual void | apply (osg::StateSet *stateset, osg::NodeVisitor *nv) |
Public Member Functions inherited from SceneUtil::StateSetUpdater | |
StateSetUpdater () | |
StateSetUpdater (const StateSetUpdater ©, const osg::CopyOp ©op) | |
Protected Member Functions | |
virtual void | setDefaults (osg::StateSet *stateset) |
Protected Member Functions inherited from SceneUtil::StateSetUpdater | |
void | reset () |
Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More... | |
Protected Attributes | |
std::vector< osg::ref_ptr < StateSetUpdater > > | mCtrls |
A variant of the StateSetController that can be made up of multiple controllers all controlling the same target.
SceneUtil::CompositeStateSetUpdater::CompositeStateSetUpdater | ( | ) |
SceneUtil::CompositeStateSetUpdater::CompositeStateSetUpdater | ( | const CompositeStateSetUpdater & | copy, |
const osg::CopyOp & | copyop | ||
) |
void SceneUtil::CompositeStateSetUpdater::addController | ( | StateSetUpdater * | ctrl | ) |
|
virtual |
Apply state - to override in derived classes
Reimplemented from SceneUtil::StateSetUpdater.
StateSetUpdater * SceneUtil::CompositeStateSetUpdater::getController | ( | int | i | ) |
SceneUtil::CompositeStateSetUpdater::META_Object | ( | SceneUtil | , |
CompositeStateSetUpdater | |||
) |
|
protectedvirtual |
Set default state - optionally override in derived classes
Reimplemented from SceneUtil::StateSetUpdater.
|
protected |