|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
24 #ifndef _SkyX_VCloudsManager_H_
25 #define _SkyX_VCloudsManager_H_
51 void create(
const Ogre::Real& radius = -1);
56 void update(
const Ogre::Real& timeSinceLastFrame);
const ColorGradient & getAmbientGradient() const
Get ambient color gradient.
VClouds::VClouds * getVClouds()
Get VClouds.
SkyX * mSkyX
SkyX parent pointer.
void notifyCameraRender(Ogre::Camera *c)
Notify camera render, to be invoked per-camera and per-frame.
void _updateWindSpeedConfig()
Update wind speed config.
ColorGradient mAmbientGradient
Ambient and Sun color gradients.
Ogre::Vector2 mHeight
Height parameters, x = Cloud field y-coord start, y: Field height (both in world coordinates)
void update(const Ogre::Real &timeSinceLastFrame)
Update.
const Ogre::Real & getWindSpeed() const
Get wind speed.
const bool & getAutoupdate() const
Get autoupdate.
void setAmbientGradient(const ColorGradient &AmbientGradient)
Set ambient gradient.
ColorGradient mSunGradient
void setAutoupdate(const bool &Autoupdate)
Autoupdate volumetric clouds wind depending of the SkyX time multiplier.
void setSunGradient(const ColorGradient &SunGradient)
Set sun gradient.
void setHeight(const Ogre::Vector2 &Height)
Set height parameters.
VCloudsManager(SkyX *s)
Constructor.
~VCloudsManager()
Destructor.
const Ogre::Vector2 & getHeight() const
Get height parameters.
Ogre::Real mWindSpeed
Wind speed.
const bool & isCreated() const
Is moon manager created?
void create(const Ogre::Real &radius=-1)
Create all resources.
VClouds::VClouds * mVClouds
VClouds pointer.
void remove()
Remove all resources.
Ogre::Real mCurrentTimeSinceLastFrame
Current time since last frame.
bool mCreated
Is vclouds manager created?
bool mAutoupdate
Autoupdate wind speed depending of skyx time multiplier?
void setWindSpeed(const Ogre::Real &WindSpeed)
Set wind speed.
void _setLightParameters()
Set light parameters.
const ColorGradient & getSunGradient() const
Get sun color gradient.