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

Public Member Functions

 Updater (Resource::ImageManager &imageManager)
 
virtual void setDefaults (osg::StateSet *stateset)
 
virtual void apply (osg::StateSet *stateset, osg::NodeVisitor *)
 
void setTextures (const std::string &phaseTex, const std::string &circleTex)
 
- Public Member Functions inherited from SceneUtil::StateSetUpdater
 StateSetUpdater ()
 
 StateSetUpdater (const StateSetUpdater &copy, const osg::CopyOp &copyop)
 

Public Attributes

Resource::ImageManagermImageManager
 
osg::ref_ptr< osg::Texture2D > mPhaseTex
 
osg::ref_ptr< osg::Texture2D > mCircleTex
 
float mTransparency
 
float mShadowBlend
 
osg::Vec4f mAtmosphereColor
 
osg::Vec4f mMoonColor
 

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::Moon::Updater::Updater ( Resource::ImageManager imageManager)
inline

Member Function Documentation

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

virtual void MWRender::Moon::Updater::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:

void MWRender::Moon::Updater::setTextures ( const std::string &  phaseTex,
const std::string &  circleTex 
)
inline

Here is the call graph for this function:

Member Data Documentation

osg::Vec4f MWRender::Moon::Updater::mAtmosphereColor
osg::ref_ptr<osg::Texture2D> MWRender::Moon::Updater::mCircleTex
Resource::ImageManager& MWRender::Moon::Updater::mImageManager
osg::Vec4f MWRender::Moon::Updater::mMoonColor
osg::ref_ptr<osg::Texture2D> MWRender::Moon::Updater::mPhaseTex
float MWRender::Moon::Updater::mShadowBlend
float MWRender::Moon::Updater::mTransparency

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