TC Struct Reference


Detailed Description

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.

Definition at line 203 of file mesh.h.

#include <mesh.h>

List of all members.

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
}; 

Constructor & Destructor Documentation

TC ( void  ) [inline]

Definition at line 207 of file mesh.h.

{
TC ( float  fU,
float  fV 
) [inline]

Definition at line 209 of file mesh.h.

:

Member Function Documentation

bool operator== ( const TC a ) const [inline]

Definition at line 211 of file mesh.h.

: public Topology
bool operator!= ( const TC a ) const [inline]

Definition at line 213 of file mesh.h.

: public Topology
TC operator+ ( const TC a ) const [inline]

Definition at line 215 of file mesh.h.

: public Topology
TC operator- ( const TC a ) const [inline]

Definition at line 217 of file mesh.h.

: public Topology
TC operator* ( float  f ) const [inline]

Definition at line 219 of file mesh.h.

: public Topology
TC operator/ ( float  f ) const [inline]

Definition at line 221 of file mesh.h.

: public Topology
TC& operator+= ( const TC a ) [inline]

Definition at line 223 of file mesh.h.

: public Topology
TC& operator-= ( const TC a ) [inline]

Definition at line 225 of file mesh.h.

: public Topology
TC& operator*= ( float  f ) [inline]

Definition at line 227 of file mesh.h.

: public Topology
TC& operator/= ( float  f ) [inline]

Definition at line 229 of file mesh.h.

:
operator bool ( void  ) const throw () [inline]

Definition at line 231 of file mesh.h.

:
operator Vector ( void  ) const throw () [inline]

Definition at line 233 of file mesh.h.

:
operator const float * ( void  ) const [inline]

Definition at line 235 of file mesh.h.

:
void Normalize ( void  )
float Length ( void  )

Member Data Documentation

float m_fU

Definition at line 245 of file mesh.h.

float u

Definition at line 247 of file mesh.h.

float m_fV

Definition at line 255 of file mesh.h.

float v

Definition at line 257 of file mesh.h.


The documentation for this struct was generated from the following file: