OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | List of all members
MWRender::AlphaFader Class Reference
Inheritance diagram for MWRender::AlphaFader:
Collaboration diagram for MWRender::AlphaFader:

Classes

class  SetupVisitor
 

Public Member Functions

 AlphaFader ()
 
void setAlpha (float alpha)
 
virtual void setDefaults (osg::StateSet *stateset)
 
virtual void apply (osg::StateSet *stateset, osg::NodeVisitor *nv)
 
- Public Member Functions inherited from SceneUtil::StateSetUpdater
 StateSetUpdater ()
 
 StateSetUpdater (const StateSetUpdater &copy, const osg::CopyOp &copyop)
 

Private Attributes

float mAlpha
 

Additional Inherited Members

- 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...
 

Constructor & Destructor Documentation

MWRender::AlphaFader::AlphaFader ( )
inline

Member Function Documentation

virtual void MWRender::AlphaFader::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.

void MWRender::AlphaFader::setAlpha ( float  alpha)
inline
virtual void MWRender::AlphaFader::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.

Reimplemented in MWRender::RainFader.

Here is the call graph for this function:

Member Data Documentation

float MWRender::AlphaFader::mAlpha
private

The documentation for this class was generated from the following file: