Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

SMaterial Class Reference

#include <SO3Material.h>

Inheritance diagram for SMaterial:
SData

List of all members.

Public Member Functions

 SMaterial (std::string materialName)
 ~SMaterial ()
Ogre::MaterialPtr getOgreMaterialPointer ()
void setOgreMaterialPointer (Ogre::MaterialPtr mMaterial)
int getNbOfTextureUnit ()
void setNbOfTextureUnit (int nb)
void SetTextureUScroll (unsigned int technique, unsigned int pass, unsigned int textureUnit, float value)
float GetTextureUScroll (unsigned int technique, unsigned int pass, unsigned int textureUnit)
void SetTextureVScroll (unsigned int technique, unsigned int pass, unsigned int textureUnit, float value)
float GetTextureVScroll (unsigned int technique, unsigned int pass, unsigned int textureUnit)
void SetTextureUScale (unsigned int technique, unsigned int pass, unsigned int textureUnit, float value)
float GetTextureUScale (unsigned int technique, unsigned int pass, unsigned int textureUnit)
void SetTextureVScale (unsigned int technique, unsigned int pass, unsigned int textureUnit, float value)
float GetTextureVScale (unsigned int technique, unsigned int pass, unsigned int textureUnit)
void SetTextureRotate (unsigned int technique, unsigned int pass, unsigned int textureUnit, const float &radianAngle)
const float GetTextureRotate (unsigned int technique, unsigned int pass, unsigned int textureUnit)
void SetTextureScrollAnimation (unsigned int technique, unsigned int pass, unsigned int textureUnit, float uSpeed, float vSpeed)
void SetTextureRotateAnimation (unsigned int technique, unsigned int pass, unsigned int textureUnit, float speed)

Public Attributes

bool hasFlashControl

Protected Member Functions

Ogre::TextureUnitState * GetMaterialUnitState (unsigned int technique, unsigned int pass, unsigned int textureUnit)

Protected Attributes

Ogre::MaterialPtr O3MaterialPtr
int nbOfTextureUnit

Detailed Description

Definition at line 41 of file SO3Material.h.


Constructor & Destructor Documentation

SMaterial::SMaterial ( std::string  materialName )

Definition at line 9 of file SO3Material.cpp.

SMaterial::~SMaterial (  )

Definition at line 21 of file SO3Material.cpp.


Member Function Documentation

Ogre::TextureUnitState * SMaterial::GetMaterialUnitState ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit 
) [protected]

Definition at line 45 of file SO3Material.cpp.

int SMaterial::getNbOfTextureUnit (  )

Definition at line 30 of file SO3Material.cpp.

Ogre::MaterialPtr SMaterial::getOgreMaterialPointer (  )

Definition at line 25 of file SO3Material.cpp.

const float SMaterial::GetTextureRotate ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit 
)

Definition at line 156 of file SO3Material.cpp.

float SMaterial::GetTextureUScale ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit 
)

Definition at line 116 of file SO3Material.cpp.

float SMaterial::GetTextureUScroll ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit 
)

Definition at line 76 of file SO3Material.cpp.

float SMaterial::GetTextureVScale ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit 
)

Definition at line 136 of file SO3Material.cpp.

float SMaterial::GetTextureVScroll ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit 
)

Definition at line 96 of file SO3Material.cpp.

void SMaterial::setNbOfTextureUnit ( int  nb )

Definition at line 40 of file SO3Material.cpp.

void SMaterial::setOgreMaterialPointer ( Ogre::MaterialPtr  mMaterial )

Definition at line 35 of file SO3Material.cpp.

void SMaterial::SetTextureRotate ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
const float &  radianAngle 
)

Sets the anticlockwise rotation factor applied to texture coordinates.

Definition at line 147 of file SO3Material.cpp.

void SMaterial::SetTextureRotateAnimation ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
float  speed 
)

Sets up an animated texture rotation for this layer.

Definition at line 176 of file SO3Material.cpp.

void SMaterial::SetTextureScrollAnimation ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
float  uSpeed,
float  vSpeed 
)

Sets up an animated scroll for the texture layer.

Definition at line 167 of file SO3Material.cpp.

void SMaterial::SetTextureUScale ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
float  value 
)

As setTextureScale, but sets only U value.

Definition at line 107 of file SO3Material.cpp.

void SMaterial::SetTextureUScroll ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
float  value 
)

Sets the translation offset of the texture, ie scrolls the texture, for the U value.

Definition at line 67 of file SO3Material.cpp.

void SMaterial::SetTextureVScale ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
float  value 
)

As setTextureScale, but sets only V value.

Definition at line 127 of file SO3Material.cpp.

void SMaterial::SetTextureVScroll ( unsigned int  technique,
unsigned int  pass,
unsigned int  textureUnit,
float  value 
)

As setTextureScrollU, but sets only V value.

Definition at line 87 of file SO3Material.cpp.


Member Data Documentation

Definition at line 60 of file SO3Material.h.

int SMaterial::nbOfTextureUnit [protected]

Definition at line 46 of file SO3Material.h.

Ogre::MaterialPtr SMaterial::O3MaterialPtr [protected]

Definition at line 45 of file SO3Material.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines