Predefined controller value for getting / setting a texture coordinate modifications (scales and translates).
More...
#include <OgreTextureAnimationController.h>
Predefined controller value for getting / setting a texture coordinate modifications (scales and translates).
- Because of the nature of this value, it can accept values outside the 0..1 parametric range.
- Example usage to scroll across U (make sure the sampler is set to wrap):
Instances of this class 'control' the value of another object in the system.
Definition OgreController.h:130
Class for managing Controller instances.
Definition OgreControllerManager.h:61
static ControllerManager & getSingleton()
Override standard Singleton retrieval.
Controller< Real > * createController(const ControllerValueRealPtr &src, const ControllerValueRealPtr &dest, const ControllerFunctionRealPtr &func)
Creates a new controller and registers it with the manager.
void destroyController(Controller< Real > *controller)
Removes & destroys the controller passed in as a pointer.
An hlms datablock contains individual information about a specific material.
Definition OgreHlmsDatablock.h:430
Contains information needed by PBS (Physically Based Shading) for OpenGL 3+ & D3D11+.
Definition OgreHlmsUnlitDatablock.h:59
void setEnableAnimationMatrix(uint8 textureUnit, bool bEnable)
Enables the animation of the given texture unit.
Predefined controller function which simply scales an input to an output value.
Definition OgrePredefinedControllers.h:232
Definition OgreSharedPtr.h:57
TextureAnimationControllerValue(Ogre::HlmsDatablock *datablock, Ogre::uint8 textureUnit)
Constructor.
void scrollAnimation(bool translateU, bool translateV)
scrollAnimation.
SharedPtr< ControllerValue< Real > > ControllerValueRealPtr
Definition OgreControllerManager.h:51
bswapNN may be defined as macros in <sys/endian.h> or <sys/bswap.h>
Definition OgreAndroidLogListener.h:35
◆ TextureAnimationControllerValue()
Constructor.
- Parameters
-
| datablock | HlmsDatablock to apply the modification to. |
| textureUnit | textureUnit to apply the modification to. |
◆ getValue()
| Ogre::Real Ogre::TextureAnimationControllerValue::getValue |
( |
| ) |
const |
|
overridevirtual |
◆ rotationAnimation()
| void Ogre::TextureAnimationControllerValue::rotationAnimation |
( |
bool | rotate | ) |
|
rotationAnimation.
- Parameters
-
| rotate | If true, the texture will be rotated by the modification. |
◆ scaleAnimation()
| void Ogre::TextureAnimationControllerValue::scaleAnimation |
( |
bool | scaleU, |
|
|
bool | scaleV ) |
scaleAnimation.
- Parameters
-
| scaleU | If true, the u coordinates will be scaled by the modification. |
| scaleV | If true, the v coordinates will be scaled by the modification. |
◆ scrollAnimation()
| void Ogre::TextureAnimationControllerValue::scrollAnimation |
( |
bool | translateU, |
|
|
bool | translateV ) |
scrollAnimation.
- Parameters
-
| textureUnit | textureUnit to apply the modification to. |
| translateV | If true, the v coordinates will be translated by the modification. |
◆ setValue()
| void Ogre::TextureAnimationControllerValue::setValue |
( |
Ogre::Real | value | ) |
|
|
overridevirtual |
◆ tiledAnimation()
| void Ogre::TextureAnimationControllerValue::tiledAnimation |
( |
Ogre::uint16 | numFramesHorizontal, |
|
|
Ogre::uint16 | numFramesVertical ) |
tiledAnimation.
- Parameters
-
| numFramesHorizontal | number of horizontal tiles. |
| numFramesVertical | number of vertical tiles. |
The documentation for this class was generated from the following file: