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

Public Member Functions

 GlowUpdater (int texUnit, osg::Vec4f color, const std::vector< osg::ref_ptr< osg::Texture2D > > &textures, osg::Node *node, float duration, Resource::ResourceSystem *resourcesystem)
 
virtual void setDefaults (osg::StateSet *stateset)
 
void removeTexture (osg::StateSet *stateset)
 
virtual void apply (osg::StateSet *stateset, osg::NodeVisitor *nv)
 
bool isPermanentGlowUpdater ()
 
bool isDone ()
 
void setColor (osg::Vec4f color)
 
void setDuration (float duration)
 
- Public Member Functions inherited from SceneUtil::StateSetUpdater
 StateSetUpdater ()
 
 StateSetUpdater (const StateSetUpdater &copy, const osg::CopyOp &copyop)
 

Private Attributes

int mTexUnit
 
osg::Vec4f mColor
 
osg::Vec4f mOriginalColor
 
std::vector< osg::ref_ptr
< osg::Texture2D > > 
mTextures
 
osg::Node * mNode
 
float mDuration
 
float mOriginalDuration
 
float mStartingTime
 
Resource::ResourceSystemmResourceSystem
 
bool mColorChanged
 
bool mDone
 

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

Member Function Documentation

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.

Here is the call graph for this function:

bool MWRender::GlowUpdater::isDone ( )
inline
bool MWRender::GlowUpdater::isPermanentGlowUpdater ( )
inline
void MWRender::GlowUpdater::removeTexture ( osg::StateSet *  stateset)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::GlowUpdater::setDuration ( float  duration)
inline

Member Data Documentation

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
Resource::ResourceSystem* MWRender::GlowUpdater::mResourceSystem
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: