Caelum
0.6.4
|
A cloud system is implemented by a number of cloud layers. More...
#include <CloudSystem.h>
Public Types | |
typedef std::vector< FlatCloudLayer * > | LayerVector |
Public Member Functions | |
CloudSystem (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *cloudRoot) | |
LayerVector & | getLayerVector () |
Direct access to the layer vector. | |
void | clearLayers () |
Clears all cloud layers. | |
FlatCloudLayer * | createLayer () |
Create a new cloud layer with default settings at height 0. More... | |
FlatCloudLayer * | createLayerAtHeight (Ogre::Real height) |
Create a new cloud layer with default settings at a certain height. More... | |
void | addLayer (FlatCloudLayer *layer) |
Add new layer. Takes ownership of the layer. | |
FlatCloudLayer * | getLayer (int index) |
Get a pointer to a certain layer. | |
int | getLayerCount () |
Get the total number of layers. | |
void | update (Ogre::Real timePassed, const Ogre::Vector3 &sunDirection, const Ogre::ColourValue &sunLightColour, const Ogre::ColourValue &fogColour, const Ogre::ColourValue &sunSphereColour) |
Update function called every frame from high above. | |
void | forceLayerQueryFlags (uint flags) |
Similar to. More... | |
void | forceLayerVisibilityFlags (uint flags) |
Similar to. More... | |
A cloud system is implemented by a number of cloud layers.
Different cloud layers could implement different kinds of clouds (cirrus, stratus).
FlatCloudLayer* Caelum::CloudSystem::createLayer | ( | ) |
Create a new cloud layer with default settings at height 0.
FlatCloudLayer* Caelum::CloudSystem::createLayerAtHeight | ( | Ogre::Real | height | ) |
Create a new cloud layer with default settings at a certain height.
void Caelum::CloudSystem::forceLayerQueryFlags | ( | uint | flags | ) |
Similar to.
void Caelum::CloudSystem::forceLayerVisibilityFlags | ( | uint | flags | ) |
Similar to.