The SkyManager handles rendering of the sky domes, celestial bodies as well as other objects that need to be rendered relative to the camera (e.g. weather particle effects)
More...
#include <sky.hpp>
The SkyManager handles rendering of the sky domes, celestial bodies as well as other objects that need to be rendered relative to the camera (e.g. weather particle effects)
MWRender::SkyManager::~SkyManager |
( |
| ) |
|
void MWRender::SkyManager::create |
( |
| ) |
|
|
private |
no need to call this, automatically done on first enable()
void MWRender::SkyManager::createRain |
( |
| ) |
|
|
private |
void MWRender::SkyManager::destroyRain |
( |
| ) |
|
|
private |
int MWRender::SkyManager::getMasserPhase |
( |
| ) |
const |
0 new moon, 1 waxing or waning cresecent, 2 waxing or waning half, 3 waxing or waning gibbous, 4 full moon
int MWRender::SkyManager::getSecundaPhase |
( |
| ) |
const |
0 new moon, 1 waxing or waning cresecent, 2 waxing or waning half, 3 waxing or waning gibbous, 4 full moon
void MWRender::SkyManager::listAssetsToPreload |
( |
std::vector< std::string > & |
models, |
|
|
std::vector< std::string > & |
textures |
|
) |
| |
void MWRender::SkyManager::setDate |
( |
int |
day, |
|
|
int |
month |
|
) |
| |
will be called even when sky is disabled.
void MWRender::SkyManager::setEnabled |
( |
bool |
enabled | ) |
|
void MWRender::SkyManager::setGlareTimeOfDayFade |
( |
float |
val | ) |
|
void MWRender::SkyManager::setHour |
( |
double |
hour | ) |
|
will be called even when sky is disabled.
void MWRender::SkyManager::setMasserState |
( |
const MoonState & |
state | ) |
|
void MWRender::SkyManager::setMoonColour |
( |
bool |
red | ) |
|
change Secunda colour to red
void MWRender::SkyManager::setRainSpeed |
( |
float |
speed | ) |
|
void MWRender::SkyManager::setSecundaState |
( |
const MoonState & |
state | ) |
|
void MWRender::SkyManager::setStormDirection |
( |
const osg::Vec3f & |
direction | ) |
|
void MWRender::SkyManager::setSunDirection |
( |
const osg::Vec3f & |
direction | ) |
|
void MWRender::SkyManager::setWaterEnabled |
( |
bool |
enabled | ) |
|
Enable or disable the water plane (used to remove underwater weather particles)
void MWRender::SkyManager::setWaterHeight |
( |
float |
height | ) |
|
Set height of water plane (used to remove underwater weather particles)
void MWRender::SkyManager::setWeather |
( |
const WeatherResult & |
weather | ) |
|
void MWRender::SkyManager::sunDisable |
( |
| ) |
|
void MWRender::SkyManager::sunEnable |
( |
| ) |
|
void MWRender::SkyManager::update |
( |
float |
duration | ) |
|
void MWRender::SkyManager::updateRainParameters |
( |
| ) |
|
|
private |
osg::ref_ptr<osg::Node> MWRender::SkyManager::mAtmosphereDay |
|
private |
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::SkyManager::mAtmosphereNightNode |
|
private |
float MWRender::SkyManager::mAtmosphereNightRoll |
|
private |
float MWRender::SkyManager::mCloudAnimationTimer |
|
private |
float MWRender::SkyManager::mCloudBlendFactor |
|
private |
osg::Vec4f MWRender::SkyManager::mCloudColour |
|
private |
osg::ref_ptr<osg::Node> MWRender::SkyManager::mCloudMesh |
|
private |
osg::ref_ptr<osg::Node> MWRender::SkyManager::mCloudMesh2 |
|
private |
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::SkyManager::mCloudNode |
|
private |
std::string MWRender::SkyManager::mClouds |
|
private |
float MWRender::SkyManager::mCloudSpeed |
|
private |
osg::ref_ptr<CloudUpdater> MWRender::SkyManager::mCloudUpdater |
|
private |
osg::ref_ptr<CloudUpdater> MWRender::SkyManager::mCloudUpdater2 |
|
private |
bool MWRender::SkyManager::mCreated |
|
private |
std::string MWRender::SkyManager::mCurrentParticleEffect |
|
private |
int MWRender::SkyManager::mDay |
|
private |
osg::ref_ptr<osg::Group> MWRender::SkyManager::mEarlyRenderBinRoot |
|
private |
bool MWRender::SkyManager::mEnabled |
|
private |
osg::Vec4f MWRender::SkyManager::mFogColour |
|
private |
bool MWRender::SkyManager::mIsStorm |
|
private |
std::auto_ptr<Moon> MWRender::SkyManager::mMasser |
|
private |
int MWRender::SkyManager::mMonth |
|
private |
osg::Vec4f MWRender::SkyManager::mMoonScriptColor |
|
private |
std::string MWRender::SkyManager::mNextClouds |
|
private |
osg::ref_ptr<osg::Node> MWRender::SkyManager::mParticleEffect |
|
private |
std::vector<osg::ref_ptr<AlphaFader> > MWRender::SkyManager::mParticleFaders |
|
private |
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::SkyManager::mParticleNode |
|
private |
std::string MWRender::SkyManager::mRainEffect |
|
private |
bool MWRender::SkyManager::mRainEnabled |
|
private |
osg::ref_ptr<RainFader> MWRender::SkyManager::mRainFader |
|
private |
float MWRender::SkyManager::mRainFrequency |
|
private |
osg::ref_ptr<osg::Group> MWRender::SkyManager::mRainNode |
|
private |
osg::ref_ptr<osgParticle::ParticleSystem> MWRender::SkyManager::mRainParticleSystem |
|
private |
osg::ref_ptr<RainShooter> MWRender::SkyManager::mRainShooter |
|
private |
float MWRender::SkyManager::mRainSpeed |
|
private |
float MWRender::SkyManager::mRainTimer |
|
private |
float MWRender::SkyManager::mRemainingTransitionTime |
|
private |
osg::ref_ptr<osg::Group> MWRender::SkyManager::mRootNode |
|
private |
std::auto_ptr<Moon> MWRender::SkyManager::mSecunda |
|
private |
osg::Vec4f MWRender::SkyManager::mSkyColour |
|
private |
float MWRender::SkyManager::mStarsOpacity |
|
private |
osg::Vec3f MWRender::SkyManager::mStormDirection |
|
private |
std::auto_ptr<Sun> MWRender::SkyManager::mSun |
|
private |
bool MWRender::SkyManager::mSunEnabled |
|
private |
float MWRender::SkyManager::mWindSpeed |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/sky.hpp
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/sky.cpp