OpenMW
|
Implements efficient per-frame updating of StateSets. More...
#include <statesetupdater.hpp>
Public Member Functions | |
StateSetUpdater () | |
StateSetUpdater (const StateSetUpdater ©, const osg::CopyOp ©op) | |
virtual META_Object(SceneUtil, StateSetUpdater) virtual void operator()(osg | apply (osg::StateSet *stateset, osg::NodeVisitor *nv) void |
virtual void | setDefaults (osg::StateSet *stateset) |
Protected Member Functions | |
void | reset () |
Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More... | |
Private Attributes | |
osg::ref_ptr< osg::StateSet > | mStateSets [2] |
Implements efficient per-frame updating of StateSets.
SceneUtil::StateSetUpdater::StateSetUpdater | ( | ) |
SceneUtil::StateSetUpdater::StateSetUpdater | ( | const StateSetUpdater & | copy, |
const osg::CopyOp & | copyop | ||
) |
|
inlinevirtual |
Apply state - to override in derived classes
Reimplemented in MWRender::AlphaFader, MWRender::Moon::Updater, MWRender::Sun::Updater, NifOsg::FlipController, MWRender::GlowUpdater, NifOsg::AlphaController, MWRender::CloudUpdater, MWRender::AtmosphereNightUpdater, MWRender::AtmosphereUpdater, MWRender::StateUpdater, and SceneUtil::CompositeStateSetUpdater.
|
protected |
Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed.
|
inlinevirtual |
Set default state - optionally override in derived classes
Reimplemented in MWRender::RainFader, MWRender::AlphaFader, MWRender::Moon::Updater, MWRender::Sun::Updater, MWRender::GlowUpdater, NifOsg::AlphaController, MWRender::CloudUpdater, MWRender::AtmosphereNightUpdater, MWRender::AtmosphereUpdater, SceneUtil::CompositeStateSetUpdater, and MWRender::StateUpdater.
|
private |