Represents Texture Coordinates (UVs) in the mesh.
A Mesh object may or may not have Texture Coordinates. If a mesh does have TCs, you can access them via Mesh::TriangleVertexTC or Mesh::QuadVertexTC. Although TCs are associated with particular Vertices, they are not part of the Vertex object. This is because a single Vertex may have more different TCs associated with each face that includes the Vertex.
#include <mesh.h>
Public Member Functions |
|
TC (void) | |
TC (float fU, float fV) | |
bool | operator== (const TC &a) const |
bool | operator!= (const TC &a) const |
TC | operator+ (const TC &a) const |
TC | operator- (const TC &a) const |
TC | operator* (float f) const |
TC | operator/ (float f) const |
TC & | operator+= (const TC &a) |
TC & | operator-= (const TC &a) |
TC & | operator*= (float f) |
TC & | operator/= (float f) |
operator bool (void) const throw () | |
operator Vector (void) const throw () | |
operator const float * (void) const | |
void | Normalize (void) |
float | Length (void) |
Public Attributes |
|
union { | |
float m_fU | |
float u | |
}; | |
union { | |
float m_fV | |
float v | |
}; |
bool operator== | ( | const TC & | a | ) | const [inline] |
bool operator!= | ( | const TC & | a | ) | const [inline] |
void Normalize | ( | void | ) |
float Length | ( | void | ) |
float m_fU |
float u |
union { ... } |
float m_fV |
float v |
union { ... } |