#include <OgreControllerManager.h>
Inheritance diagram for Ogre::ControllerManager:
Public Member Functions | |
ControllerManager () | |
~ControllerManager () | |
Controller< Real > * | createController (const ControllerValueRealPtr &src, const ControllerValueRealPtr &dest, const ControllerFunctionRealPtr &func) |
Creates a new controller and registers it with the manager. | |
Controller< Real > * | createFrameTimePassthroughController (const ControllerValueRealPtr &dest) |
Creates a new controller use frame time source and passthrough controller function. | |
void | clearControllers (void) |
Destroys all the controllers in existence. | |
void | updateAllControllers (void) |
Updates all the registered controllers. | |
const ControllerValueRealPtr & | getFrameTimeSource (void) const |
Returns a ControllerValue which provides the time since the last frame as a control value source. | |
const ControllerFunctionRealPtr & | getPassthroughControllerFunction (void) const |
Retrieve a simple passthrough controller function. | |
Controller< Real > * | createTextureAnimator (TextureUnitState *layer, Real sequenceTime) |
Creates a texture layer animator controller. | |
Controller< Real > * | createTextureUVScroller (TextureUnitState *layer, Real speed) |
Creates a basic time-based texture uv coordinate modifier designed for creating scrolling textures. | |
Controller< Real > * | createTextureUScroller (TextureUnitState *layer, Real uSpeed) |
Creates a basic time-based texture u coordinate modifier designed for creating scrolling textures. | |
Controller< Real > * | createTextureVScroller (TextureUnitState *layer, Real vSpeed) |
Creates a basic time-based texture v coordinate modifier designed for creating scrolling textures. | |
Controller< Real > * | createTextureRotater (TextureUnitState *layer, Real speed) |
Creates a basic time-based texture coordinate modifier designed for creating rotating textures. | |
Controller< Real > * | createTextureWaveTransformer (TextureUnitState *layer, TextureUnitState::TextureTransformType ttype, WaveformType waveType, Real base=0, Real frequency=1, Real phase=0, Real amplitude=1) |
Creates a very flexible time-based texture transformation which can alter the scale, position or rotation of a texture based on a wave function. | |
Controller< Real > * | createGpuProgramTimerParam (GpuProgramParameters *params, size_t paramIndex, Real timeFactor=1.0f) |
Creates a controller for passing a frame time value through to a vertex / fragment program parameter. | |
void | destroyController (Controller< Real > *controller) |
Removes & destroys the controller passed in as a pointer. | |
Real | getTimeFactor (void) const |
Return relative speed of time as perceived by time based controllers. | |
void | setTimeFactor (Real tf) |
Set the relative speed to update frame time based controllers. | |
Real | getFrameDelay (void) const |
Gets the constant that is added to time lapsed between each frame. | |
void | setFrameDelay (Real fd) |
Sets a constant frame rate. | |
Real | getElapsedTime (void) const |
Return the elapsed time. | |
void | setElapsedTime (Real elapsedTime) |
Set the elapsed time. | |
Static Public Member Functions | |
ControllerManager & | getSingleton (void) |
Override standard Singleton retrieval. | |
ControllerManager * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Types | |
typedef std::set< Controller< Real > * > | ControllerList |
Protected Attributes | |
ControllerList | mControllers |
ControllerValueRealPtr | mFrameTimeController |
Global predefined controller. | |
ControllerFunctionRealPtr | mPassthroughFunction |
Global predefined controller. | |
unsigned long | mLastFrameNumber |
Static Protected Attributes | |
ControllerManager * | ms_Singleton |
Definition at line 48 of file OgreControllerManager.h.
|
Definition at line 51 of file OgreControllerManager.h. |
|
|
|
|
|
Destroys all the controllers in existence.
|
|
Creates a new controller and registers it with the manager.
|
|
Creates a new controller use frame time source and passthrough controller function.
|
|
Creates a controller for passing a frame time value through to a vertex / fragment program parameter.
|
|
Creates a texture layer animator controller.
|
|
Creates a basic time-based texture coordinate modifier designed for creating rotating textures.
|
|
Creates a basic time-based texture u coordinate modifier designed for creating scrolling textures.
|
|
Creates a basic time-based texture uv coordinate modifier designed for creating scrolling textures.
|
|
Creates a basic time-based texture v coordinate modifier designed for creating scrolling textures.
|
|
Creates a very flexible time-based texture transformation which can alter the scale, position or rotation of a texture based on a wave function.
|
|
Removes & destroys the controller passed in as a pointer.
|
|
Return the elapsed time.
|
|
Gets the constant that is added to time lapsed between each frame.
|
|
Returns a ControllerValue which provides the time since the last frame as a control value source.
|
|
Retrieve a simple passthrough controller function.
|
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< ControllerManager >. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< ControllerManager >. |
|
Return relative speed of time as perceived by time based controllers.
|
|
Set the elapsed time.
|
|
Sets a constant frame rate.
|
|
Set the relative speed to update frame time based controllers.
|
|
Updates all the registered controllers.
|
|
Definition at line 52 of file OgreControllerManager.h. |
|
Global predefined controller.
Definition at line 55 of file OgreControllerManager.h. |
|
Definition at line 61 of file OgreControllerManager.h. |
|
Global predefined controller.
Definition at line 58 of file OgreControllerManager.h. |
|
Definition at line 54 of file OgreSingleton.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:36 2006