Go to the documentation of this file.
28 #ifndef __PredefinedControllers_H__
29 #define __PredefinedControllers_H__
124 bool scaleU =
false,
bool scaleV =
false,
bool rotate =
false );
A interface class defining a listener which can be used to receive notifications of frame events.
bool frameEnded(const FrameEvent &evt)
Called just after a frame has been rendered.
Can either be used as an input or output value.
size_t mParamIndex
The index of the parameter to be read or set.
Class representing the state of a single texture unit during a Pass of a Technique,...
Predefined controller function for dealing with animation.
Real calculate(Real source)
Overridden function.
Real getTimeFactor(void) const
Predefined controller value for setting a single floating- point value in a constant parameter of a v...
AnimationControllerFunction(Real sequenceTime, Real timeOffset=0.0f)
Constructor.
Predefined controller value for getting / setting a texture coordinate modifications (scales and tran...
Predefined controller value for getting the latest frame time.
Real calculate(Real source)
Overridden function.
Predefined controller value for getting / setting the frame number of a texture layer.
Real getFrameDelay(void) const
WaveformType
Enumerates the wave types usable with the Ogre engine.
void setValue(Real value)
Sets the frame number as a parametric value in the range [0,1]; the actual frame number is (value * n...
Real getValue(void) const
Gets the frame number as a parametric value in the range [0,1].
Predefined controller function which just passes through the original source directly to dest.
FrameTimeControllerValue()
void setTime(Real timeVal)
Set the time value manually.
FloatGpuParameterControllerValue(GpuProgramParametersSharedPtr params, size_t index)
Constructor.
TextureUnitState * mTextureLayer
void setValue(Real value)
PassthroughControllerFunction(bool deltaInput=false)
Constructor.
Real getValue(void) const
Real getValue(void) const
ScaleControllerFunction(Real scalefactor, bool deltaInput)
Constructor, requires a scale factor.
void setValue(Real value)
Real getElapsedTime(void) const
Predefined controller function which simply scales an input to an output value.
TextureFrameControllerValue(TextureUnitState *t)
Struct containing information about a frame event.
bool frameStarted(const FrameEvent &evt)
Called when a frame is about to begin rendering.
Subclasses of this class are responsible for performing a function on an input value for a Controller...
void setFrameDelay(Real fd)
TextureUnitState * mTextureLayer
GpuProgramParametersSharedPtr mParams
The parameters to access.
void setSequenceTime(Real seqVal)
Set the sequence duration value manually.
float Real
Software floating point type.
Real getValue(void) const
Real calculate(Real source)
Overridden method.
void setElapsedTime(Real elapsedTime)
TexCoordModifierControllerValue(TextureUnitState *t, bool translateU=false, bool translateV=false, bool scaleU=false, bool scaleV=false, bool rotate=false)
Constructor.
~FloatGpuParameterControllerValue()
void setValue(Real value)
void setTimeFactor(Real tf)
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.