Caelum  0.6.4
Classes | Public Member Functions | Friends | List of all members
Caelum::PrecipitationInstance Class Reference

Per-viewport instance of precipitation. More...

#include <PrecipitationController.h>

Inheritance diagram for Caelum::PrecipitationInstance:
[legend]

Public Member Functions

Ogre::ViewportgetViewport () const
 
PrecipitationControllergetParent () const
 
Ogre::CompositorInstancegetCompositorInstance () const
 
bool getAutoCameraSpeed ()
 Check if camera speed is automatically calculated (default true).
 
void setAutoCameraSpeed ()
 Set camera speed to automatic calculation. More...
 
void setManualCameraSpeed (const Ogre::Vector3 &value)
 Set manual camera speed; disables automatic calculation.
 
const Ogre::Vector3 getCameraSpeed ()
 Get current camera speed. Doesn't include CameraSpeedScale.
 
 PrecipitationInstance (PrecipitationController *parent, Ogre::Viewport *view)
 

Friends

class PrecipitationController
 

Detailed Description

Per-viewport instance of precipitation.

This will create and control an ogre::CompositorInstance.

Member Function Documentation

◆ setAutoCameraSpeed()

void Caelum::PrecipitationInstance::setAutoCameraSpeed ( )

Set camera speed to automatic calculation.

Warning
: This runs into difficult precission issues. It is better to use setManualCameraSpeed.