Caelum  0.6.3
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
Caelum::DepthComposer Class Reference

Compositor-based precipitation controller. More...

#include <DepthComposer.h>

Public Types

typedef std::map< Ogre::Viewport *, DepthComposerInstance * > ViewportInstanceMap
 

Public Member Functions

 DepthComposer (Ogre::SceneManager *sceneMgr)
 
void update ()
 
DepthComposerInstancecreateViewportInstance (Ogre::Viewport *viewport)
 
void destroyViewportInstance (Ogre::Viewport *viewport)
 
DepthComposerInstancegetViewportInstance (Ogre::Viewport *viewport)
 
void destroyAllViewportInstances ()
 
void setDebugDepthRender (bool value)
 Enables drawing the depth buffer.
 
bool getDebugDepthRender () const
 
void setSkyDomeHazeEnabled (bool value)
 Enables skydome haze.
 
bool getSkyDomeHazeEnabled () const
 
void setSunDirection (const Ogre::Vector3 &value)
 
const Ogre::Vector3 getSunDirection () const
 
void setHazeColour (const Ogre::ColourValue &value)
 
const Ogre::ColourValue getHazeColour () const
 
void setGroundFogEnabled (bool value)
 Enables exponential ground fog.
 
bool getGroundFogEnabled () const
 
void setGroundFogDensity (Real value)
 Sets ground fog density.
 
Real getGroundFogDensity () const
 Get ground fog density.
 
void setGroundFogBaseLevel (Real value)
 Sets ground fog level At ground level fogginess is equal to GroundFogDensity.
 
Real getGroundFogBaseLevel () const
 Get ground fog density.
 
void setGroundFogVerticalDecay (Real value)
 Sets ground fog vertical decay.
 
Real getGroundFogVerticalDecay () const
 Get ground fog density.
 
void setGroundFogColour (const Ogre::ColourValue &value)
 Sets ground fog colour.
 
const Ogre::ColourValue getGroundFogColour () const
 Get ground fog colour.
 

Public Attributes

ViewportInstanceMap mViewportInstanceMap
 

Protected Member Functions

Ogre::SceneManagergetSceneManager () const
 

Friends

class DepthComposerInstance
 

Detailed Description

Compositor-based precipitation controller.

This class will add and control precipitation controllers to viewports.

Compositors clone the composing materials. This controller will register itself as a compositor listener and change the material in notifyMaterialSetup.


The documentation for this class was generated from the following file: