OpenMW
|
#include <fader.hpp>
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 |
enum OEngine::Render::Fader::FadingMode [private] |
Fader::Fader | ( | Ogre::SceneManager * | sceneMgr | ) |
Fader::~Fader | ( | ) |
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 | ) |
float OEngine::Render::Fader::mCurrentAlpha [private] |
float OEngine::Render::Fader::mFactor [private] |
Ogre::TextureUnitState* OEngine::Render::Fader::mFadeTextureUnit [private] |
FadingMode OEngine::Render::Fader::mMode [private] |
Ogre::Rectangle2D* OEngine::Render::Fader::mRectangle [private] |
float OEngine::Render::Fader::mRemainingTime [private] |
Ogre::SceneManager* OEngine::Render::Fader::mSceneMgr [private] |
float OEngine::Render::Fader::mStartAlpha [private] |
float OEngine::Render::Fader::mTargetAlpha [private] |
float OEngine::Render::Fader::mTargetTime [private] |