#include <mesh.h>
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.
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 () |
|
|
|
|
00109 { return !operator==( a ); }; |
|
00110 { return TC( m_fU + a.m_fU, m_fV + a.m_fV ); }; |
|
00111 { return TC( m_fU - a.m_fU, m_fV - a.m_fV ); }; |
|
00112 { return TC( m_fU * f, m_fV * f ); }; |
|
00113 { return TC( m_fU / f, m_fV / f ); }; |
|
|
|
|
|
00118 { return m_fU || m_fV; }; |
|
00119 { return Vector( m_fU, m_fV, 0 ); };
|
|
|
|
|