|
void | reset () |
| Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More...
|
|
MWRender::GlowUpdater::GlowUpdater |
( |
int |
texUnit, |
|
|
osg::Vec4f |
color, |
|
|
const std::vector< osg::ref_ptr< osg::Texture2D > > & |
textures, |
|
|
osg::Node * |
node, |
|
|
float |
duration, |
|
|
Resource::ResourceSystem * |
resourcesystem |
|
) |
| |
|
inline |
virtual void MWRender::GlowUpdater::apply |
( |
osg::StateSet * |
stateset, |
|
|
osg::NodeVisitor * |
nv |
|
) |
| |
|
inlinevirtual |
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.
bool MWRender::GlowUpdater::isDone |
( |
| ) |
|
|
inline |
bool MWRender::GlowUpdater::isPermanentGlowUpdater |
( |
| ) |
|
|
inline |
void MWRender::GlowUpdater::removeTexture |
( |
osg::StateSet * |
stateset | ) |
|
|
inline |
void MWRender::GlowUpdater::setColor |
( |
osg::Vec4f |
color | ) |
|
|
inline |
virtual void MWRender::GlowUpdater::setDefaults |
( |
osg::StateSet * |
stateset | ) |
|
|
inlinevirtual |
Set default state - optionally override in derived classes
- May be used e.g. to allocate StateAttributes.
Reimplemented from SceneUtil::StateSetUpdater.
void MWRender::GlowUpdater::setDuration |
( |
float |
duration | ) |
|
|
inline |
osg::Vec4f MWRender::GlowUpdater::mColor |
|
private |
bool MWRender::GlowUpdater::mColorChanged |
|
private |
bool MWRender::GlowUpdater::mDone |
|
private |
float MWRender::GlowUpdater::mDuration |
|
private |
osg::Node* MWRender::GlowUpdater::mNode |
|
private |
osg::Vec4f MWRender::GlowUpdater::mOriginalColor |
|
private |
float MWRender::GlowUpdater::mOriginalDuration |
|
private |
float MWRender::GlowUpdater::mStartingTime |
|
private |
std::vector<osg::ref_ptr<osg::Texture2D> > MWRender::GlowUpdater::mTextures |
|
private |
int MWRender::GlowUpdater::mTexUnit |
|
private |
The documentation for this class was generated from the following file:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/animation.cpp