Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::TexCoordModifierControllerValue Class Reference

Predefined controller value for getting / setting a texture coordinate modifications (scales and translates). More...

#include <OgrePredefinedControllers.h>

Inheritance diagram for Ogre::TexCoordModifierControllerValue:

Ogre::ControllerValue List of all members.

Public Methods

 TexCoordModifierControllerValue (Material::TextureLayer *t, bool translateU=false, bool translateV=false, bool scaleU=false, bool scaleV=false, bool rotate=false)
 Constructor. More...

Real getValue (void)
void setValue (Real value)

Protected Attributes

bool mTransU
bool mTransV
bool mScaleU
bool mScaleV
bool mRotate
Material::TextureLayermTextureLayer

Detailed Description

Predefined controller value for getting / setting a texture coordinate modifications (scales and translates).

Remarks:
Affects can be applied to the scale or the offset of the u or v coordinates, or both. If separate modifications are required to u and v then 2 instances are required to control both independently, or 4 if you ant separate u and v scales as well as separate u and v offsets.

Because of the nature of this value, it can accept values outside the 0..1 parametric range.


Constructor & Destructor Documentation

Ogre::TexCoordModifierControllerValue::TexCoordModifierControllerValue Material::TextureLayer   t,
bool    translateU = false,
bool    translateV = false,
bool    scaleU = false,
bool    scaleV = false,
bool    rotate = false
 

Constructor.

Parameters:
t  TextureLayer to apply the modification to.
translateU  If true, the u coordinates will be translated by the modification.
translateV  If true, the v coordinates will be translated by the modification.
scaleU  If true, the u coordinates will be scaled by the modification.
scaleV  If true, the v coordinates will be scaled by the modification.
rotate  If true, the texture will be rotated by the modification.


Member Function Documentation

Real Ogre::TexCoordModifierControllerValue::getValue void    [virtual]
 

Implements Ogre::ControllerValue.

void Ogre::TexCoordModifierControllerValue::setValue Real    value [virtual]
 

Implements Ogre::ControllerValue.


Member Data Documentation

bool Ogre::TexCoordModifierControllerValue::mRotate [protected]
 

bool Ogre::TexCoordModifierControllerValue::mScaleU [protected]
 

bool Ogre::TexCoordModifierControllerValue::mScaleV [protected]
 

Material::TextureLayer* Ogre::TexCoordModifierControllerValue::mTextureLayer [protected]
 

bool Ogre::TexCoordModifierControllerValue::mTransU [protected]
 

bool Ogre::TexCoordModifierControllerValue::mTransV [protected]
 

Copyright © 2002 by The OGRE Team