Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a particular face of a texture. More...
#include <omGraphicsTextureFace.h>
Public Types | |
enum | Enum { POSITIVE_X = 0, FRONT = 0, NEGATIVE_X = 1, POSITIVE_Y = 2, NEGATIVE_Y = 3, POSITIVE_Z = 4, NEGATIVE_Z = 5, UNDEFINED } |
An enum that specifies the different allowed texture faces. More... | |
Public Member Functions | |
TextureFace (Enum newType) | |
Create a new texture face type with the specified face type enum value. More... | |
TextureFace (Index faceIndex) | |
Create a new texture face type with the specified face index. More... | |
Vector3 | getDirection () const |
Return a 3D vector indicating the cannonical direction for this texture face. More... | |
operator Enum () const | |
Convert this texture wrap type to an enum value. More... | |
String | toString () const |
Return a string representation of the texture face type. More... | |
operator String () const | |
Convert this texture face type into a string representation. More... | |
Static Public Member Functions | |
static Size | getMaxFaceCount () |
Return the maximum number of faces that a texture can have. More... | |
A class that represents a particular face of a texture.
While most common textures have only a single face (FRONT), cube map textures may have six faces for the six axial directions of a cube. This class allows the user to specify a particular face of that cube map.
An enum that specifies the different allowed texture faces.
|
inline |
Create a new texture face type with the specified face type enum value.
|
inline |
Create a new texture face type with the specified face index.
|
inlinestatic |
Return the maximum number of faces that a texture can have.
Vector3 om::graphics::textures::TextureFace::getDirection | ( | ) | const |
Return a 3D vector indicating the cannonical direction for this texture face.
|
inline |
Convert this texture wrap type to an enum value.
String om::graphics::textures::TextureFace::toString | ( | ) | const |
Return a string representation of the texture face type.
|
inline |
Convert this texture face type into a string representation.