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.
◆ 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: