Mesh Class Reference
[Framework Module]

#include <mesh.h>

Inheritance diagram for Mesh:

SerializedResource Resource Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

Public Types

enum  VertexComponent { VC_NONE = 0, VC_COORDS = (1 << 0), VC_COLOR = (1 << 1), VC_ALL = ((1 << 2) - 1) }

Public Member Functions

 Mesh (const char *id)
virtual ~Mesh ()
void Set (vector2 *coords, vector4 *colors, Primitive *primitives, ushort_t vertices_count, ushort_t primitives_count, ulong_t data_size)
vector2GetCoords ()
vector2GetCoord (ushort_t id)
vector4GetColors ()
vector4GetColor (ushort_t id)
PrimitiveGetPrimitives ()
PrimitiveGetPrimitive (ushort_t id)
ushort_t GetVerticesCount ()
ushort_t GetPrimitivesCount ()
ushort_t GetTrianglesCount ()
byte_t GetComponents ()
bool TestComponents (byte_t mask)
virtual ulong_t GetDataSize ()

Protected Member Functions

virtual void Clear ()
virtual bool Deserialize (Serializer &serializer, bool first)
bool ReadVertices (Serializer &serializer)
bool ReadPrimitives (Serializer &serializer)

Protected Attributes

byte_t components
vector2coords
vector4colors
Primitiveprimitives
ushort_t vertices_count
ushort_t primitives_count
ushort_t triangles_count
ulong_t data_size


Member Enumeration Documentation

enum Mesh::VertexComponent

Enumerator:
VC_NONE 
VC_COORDS 
VC_COLOR 
VC_ALL 


Constructor & Destructor Documentation

Mesh::Mesh ( const char *  id  ) 

Constructor.

Mesh::~Mesh (  )  [virtual]

Destructor.


Member Function Documentation

void Mesh::Set ( vector2 coords,
vector4 colors,
Primitive primitives,
ushort_t  vertices_count,
ushort_t  primitives_count,
ulong_t  data_size 
)

vector2 * Mesh::GetCoords (  )  [inline]

vector2 & Mesh::GetCoord ( ushort_t  id  )  [inline]

vector4 * Mesh::GetColors (  )  [inline]

vector4 & Mesh::GetColor ( ushort_t  id  )  [inline]

Primitive * Mesh::GetPrimitives (  )  [inline]

Primitive & Mesh::GetPrimitive ( ushort_t  id  )  [inline]

ushort_t Mesh::GetVerticesCount (  )  [inline]

ushort_t Mesh::GetPrimitivesCount (  )  [inline]

ushort_t Mesh::GetTrianglesCount (  )  [inline]

byte_t Mesh::GetComponents (  )  [inline]

bool Mesh::TestComponents ( byte_t  mask  )  [inline]

ulong_t Mesh::GetDataSize (  )  [virtual]

Return an estimated byte size of the resource data. This is only used for statistics.

Reimplemented from Resource.

void Mesh::Clear (  )  [protected, virtual]

Clears all resource data.

Reimplemented from SerializedResource.

bool Mesh::Deserialize ( Serializer serializer,
bool  first 
) [protected, virtual]

Recursively deserialize all children.

Reimplemented from Root.

bool Mesh::ReadVertices ( Serializer serializer  )  [protected]

bool Mesh::ReadPrimitives ( Serializer serializer  )  [protected]


Member Data Documentation

byte_t Mesh::components [protected]

vector2* Mesh::coords [protected]

vector4* Mesh::colors [protected]

Primitive* Mesh::primitives [protected]

ushort_t Mesh::vertices_count [protected]

ushort_t Mesh::primitives_count [protected]

ushort_t Mesh::triangles_count [protected]

ulong_t Mesh::data_size [protected]


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3