OpenMW
Public Member Functions | Private Types | Private Member Functions | Private Attributes
OEngine::Render::Fader Class Reference

#include <fader.hpp>

List of all members.

Public Member Functions

 Fader (Ogre::SceneManager *sceneMgr)
 ~Fader ()
void update (float dt)
void fadeIn (const float time)
void fadeOut (const float time)
void fadeTo (const int percent, const float time)
void setFactor (float factor)

Private Types

enum  FadingMode { FadingMode_In, FadingMode_Out }

Private Member Functions

void applyAlpha ()

Private Attributes

Ogre::TextureUnitState * mFadeTextureUnit
Ogre::Rectangle2D * mRectangle
FadingMode mMode
float mRemainingTime
float mTargetTime
float mTargetAlpha
float mCurrentAlpha
float mStartAlpha
float mFactor
Ogre::SceneManager * mSceneMgr

Member Enumeration Documentation

Enumerator:
FadingMode_In 
FadingMode_Out 

Constructor & Destructor Documentation

Fader::Fader ( Ogre::SceneManager *  sceneMgr)

Member Function Documentation

void Fader::applyAlpha ( ) [private]
void Fader::fadeIn ( const float  time)
void Fader::fadeOut ( const float  time)
void Fader::fadeTo ( const int  percent,
const float  time 
)
void OEngine::Render::Fader::setFactor ( float  factor) [inline]
void Fader::update ( float  dt)

Member Data Documentation

Ogre::TextureUnitState* OEngine::Render::Fader::mFadeTextureUnit [private]
Ogre::Rectangle2D* OEngine::Render::Fader::mRectangle [private]
Ogre::SceneManager* OEngine::Render::Fader::mSceneMgr [private]

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