Primitive Class Reference

#include <meshstructures.h>

List of all members.

Public Types

enum  PrimitiveType {
 Bit depths. More...

Public Member Functions

 Primitive ()
 ~Primitive ()
void Set (PrimitiveType type, ushort_t *indices, ushort_t indices_count)
PrimitiveType GetType ()
ushort_t GetIndex (ushort_t id)
ushort_tGetIndices ()
ushort_t GetIndicesCount ()

Static Public Member Functions

static bool TypeToString (PrimitiveType type, string &name)
static PrimitiveType StringToType (const string &name)

Private Attributes

PrimitiveType type
ushort_t indices_count

Member Enumeration Documentation

enum Primitive::PrimitiveType

Bit depths.

PT_TRIANGLES  Triangles.
PT_QUADS  Quads.
PT_STRIP  Triangle strip.
PT_FAN  Triangle fan.
PT_INVALID  Invalid primitive type.

Constructor & Destructor Documentation

Primitive::Primitive (  )  [inline]

Primitive::~Primitive (  )  [inline]

Member Function Documentation

void Primitive::Set ( PrimitiveType  type,
ushort_t indices,
ushort_t  indices_count 
) [inline]

Primitive::PrimitiveType Primitive::GetType (  )  [inline]

ushort_t Primitive::GetIndex ( ushort_t  id  )  [inline]

ushort_t * Primitive::GetIndices (  )  [inline]

ushort_t Primitive::GetIndicesCount (  )  [inline]

bool Primitive::TypeToString ( Primitive::PrimitiveType  type,
string &  name 
) [inline, static]

Primitive::PrimitiveType Primitive::StringToType ( const string &  name  )  [inline, static]

Member Data Documentation

PrimitiveType Primitive::type [private]

ushort_t* Primitive::indices [private]

ushort_t Primitive::indices_count [private]

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