OpenMW
|
#include <sky.hpp>
Public Member Functions | |
SkyManager (Ogre::SceneNode *root, Ogre::Camera *pCamera) | |
~SkyManager () | |
void | update (float duration) |
void | enable () |
void | disable () |
void | setHour (double hour) |
will be called even when sky is disabled. | |
void | setDate (int day, int month) |
will be called even when sky is disabled. | |
int | getMasserPhase () const |
int | getSecundaPhase () const |
void | setMoonColour (bool red) |
change Secunda colour to red | |
void | setWeather (const MWWorld::WeatherResult &weather) |
Ogre::SceneNode * | getSunNode () |
void | sunEnable () |
void | sunDisable () |
void | setSunDirection (const Ogre::Vector3 &direction) |
void | setMasserDirection (const Ogre::Vector3 &direction) |
void | setSecundaDirection (const Ogre::Vector3 &direction) |
void | setMasserFade (const float fade) |
void | setSecundaFade (const float fade) |
void | masserEnable () |
void | masserDisable () |
void | secundaEnable () |
void | secundaDisable () |
void | setLightningStrength (const float factor) |
void | setLightningDirection (const Ogre::Vector3 &dir) |
void | setLightningEnabled (bool enabled) |
disable prior to map render | |
void | setGlare (const float glare) |
void | setGlareEnabled (bool enabled) |
Ogre::Vector3 | getRealSunPos () |
Private Member Functions | |
void | create () |
no need to call this, automatically done on first enable() | |
Private Attributes | |
bool | mCreated |
bool | mMoonRed |
float | mHour |
int | mDay |
int | mMonth |
float | mCloudAnimationTimer |
BillboardObject * | mSun |
BillboardObject * | mSunGlare |
Moon * | mMasser |
Moon * | mSecunda |
Ogre::Camera * | mCamera |
Ogre::SceneNode * | mRootNode |
Ogre::SceneManager * | mSceneMgr |
Ogre::SceneNode * | mAtmosphereDay |
Ogre::SceneNode * | mAtmosphereNight |
std::vector < NifOgre::ObjectScenePtr > | mObjects |
Ogre::String | mClouds |
Ogre::String | mNextClouds |
float | mCloudBlendFactor |
float | mCloudOpacity |
float | mCloudSpeed |
float | mStarsOpacity |
Ogre::ColourValue | mCloudColour |
Ogre::ColourValue | mSkyColour |
Ogre::ColourValue | mFogColour |
Ogre::Light * | mLightning |
float | mRemainingTransitionTime |
float | mGlare |
float | mGlareFade |
bool | mEnabled |
bool | mSunEnabled |
bool | mMasserEnabled |
bool | mSecundaEnabled |
SkyManager::SkyManager | ( | Ogre::SceneNode * | root, |
Ogre::Camera * | pCamera | ||
) |
void SkyManager::create | ( | ) | [private] |
no need to call this, automatically done on first enable()
void SkyManager::disable | ( | ) |
void SkyManager::enable | ( | ) |
int SkyManager::getMasserPhase | ( | ) | const |
0 new moon, 1 waxing or waning cresecent, 2 waxing or waning half, 3 waxing or waning gibbous, 4 full moon
Vector3 SkyManager::getRealSunPos | ( | ) |
int SkyManager::getSecundaPhase | ( | ) | const |
0 new moon, 1 waxing or waning cresecent, 2 waxing or waning half, 3 waxing or waning gibbous, 4 full moon
Ogre::SceneNode * SkyManager::getSunNode | ( | ) |
void SkyManager::masserDisable | ( | ) |
void SkyManager::masserEnable | ( | ) |
void SkyManager::secundaDisable | ( | ) |
void SkyManager::secundaEnable | ( | ) |
void SkyManager::setDate | ( | int | day, |
int | month | ||
) |
will be called even when sky is disabled.
void SkyManager::setGlare | ( | const float | glare | ) |
void SkyManager::setGlareEnabled | ( | bool | enabled | ) |
void SkyManager::setHour | ( | double | hour | ) |
will be called even when sky is disabled.
void SkyManager::setLightningDirection | ( | const Ogre::Vector3 & | dir | ) |
void SkyManager::setLightningEnabled | ( | bool | enabled | ) |
disable prior to map render
void SkyManager::setLightningStrength | ( | const float | factor | ) |
void SkyManager::setMasserDirection | ( | const Ogre::Vector3 & | direction | ) |
void SkyManager::setMasserFade | ( | const float | fade | ) |
void SkyManager::setMoonColour | ( | bool | red | ) |
change Secunda colour to red
void SkyManager::setSecundaDirection | ( | const Ogre::Vector3 & | direction | ) |
void SkyManager::setSecundaFade | ( | const float | fade | ) |
void SkyManager::setSunDirection | ( | const Ogre::Vector3 & | direction | ) |
void SkyManager::setWeather | ( | const MWWorld::WeatherResult & | weather | ) |
void SkyManager::sunDisable | ( | ) |
void SkyManager::sunEnable | ( | ) |
void SkyManager::update | ( | float | duration | ) |
Ogre::SceneNode* MWRender::SkyManager::mAtmosphereDay [private] |
Ogre::SceneNode* MWRender::SkyManager::mAtmosphereNight [private] |
Ogre::Camera* MWRender::SkyManager::mCamera [private] |
float MWRender::SkyManager::mCloudAnimationTimer [private] |
float MWRender::SkyManager::mCloudBlendFactor [private] |
Ogre::ColourValue MWRender::SkyManager::mCloudColour [private] |
float MWRender::SkyManager::mCloudOpacity [private] |
Ogre::String MWRender::SkyManager::mClouds [private] |
float MWRender::SkyManager::mCloudSpeed [private] |
bool MWRender::SkyManager::mCreated [private] |
int MWRender::SkyManager::mDay [private] |
bool MWRender::SkyManager::mEnabled [private] |
Ogre::ColourValue MWRender::SkyManager::mFogColour [private] |
float MWRender::SkyManager::mGlare [private] |
float MWRender::SkyManager::mGlareFade [private] |
float MWRender::SkyManager::mHour [private] |
Ogre::Light* MWRender::SkyManager::mLightning [private] |
Moon* MWRender::SkyManager::mMasser [private] |
bool MWRender::SkyManager::mMasserEnabled [private] |
int MWRender::SkyManager::mMonth [private] |
bool MWRender::SkyManager::mMoonRed [private] |
Ogre::String MWRender::SkyManager::mNextClouds [private] |
std::vector<NifOgre::ObjectScenePtr> MWRender::SkyManager::mObjects [private] |
float MWRender::SkyManager::mRemainingTransitionTime [private] |
Ogre::SceneNode* MWRender::SkyManager::mRootNode [private] |
Ogre::SceneManager* MWRender::SkyManager::mSceneMgr [private] |
Moon* MWRender::SkyManager::mSecunda [private] |
bool MWRender::SkyManager::mSecundaEnabled [private] |
Ogre::ColourValue MWRender::SkyManager::mSkyColour [private] |
float MWRender::SkyManager::mStarsOpacity [private] |
BillboardObject* MWRender::SkyManager::mSun [private] |
bool MWRender::SkyManager::mSunEnabled [private] |
BillboardObject* MWRender::SkyManager::mSunGlare [private] |