|
virtual void | setDefaults (osg::StateSet *stateset) |
|
virtual void | apply (osg::StateSet *stateset, osg::NodeVisitor *nv) |
|
void | reset () |
| Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More...
|
|
MWRender::CloudUpdater::CloudUpdater |
( |
| ) |
|
|
inline |
virtual void MWRender::CloudUpdater::apply |
( |
osg::StateSet * |
stateset, |
|
|
osg::NodeVisitor * |
nv |
|
) |
| |
|
inlineprotectedvirtual |
Apply state - to override in derived classes
- Note
- Due to the double buffering approach you have to apply all state even if it has not changed since the last frame.
Reimplemented from SceneUtil::StateSetUpdater.
void MWRender::CloudUpdater::setAnimationTimer |
( |
float |
timer | ) |
|
|
inline |
virtual void MWRender::CloudUpdater::setDefaults |
( |
osg::StateSet * |
stateset | ) |
|
|
inlineprotectedvirtual |
Set default state - optionally override in derived classes
- May be used e.g. to allocate StateAttributes.
Reimplemented from SceneUtil::StateSetUpdater.
void MWRender::CloudUpdater::setEmissionColor |
( |
const osg::Vec4f & |
emissionColor | ) |
|
|
inline |
void MWRender::CloudUpdater::setOpacity |
( |
float |
opacity | ) |
|
|
inline |
void MWRender::CloudUpdater::setTexture |
( |
osg::ref_ptr< osg::Texture2D > |
texture | ) |
|
|
inline |
float MWRender::CloudUpdater::mAnimationTimer |
|
private |
osg::Vec4f MWRender::CloudUpdater::mEmissionColor |
|
private |
float MWRender::CloudUpdater::mOpacity |
|
private |
osg::ref_ptr<osg::Texture2D> MWRender::CloudUpdater::mTexture |
|
private |
The documentation for this class was generated from the following file:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/sky.cpp