TSDrawPrimitive Struct Reference

#include <tsMesh.h>

List of all members.

Public Types

 Triangles = 0 << 30
 bits 30 and 31 index element type
 Strip = 1 << 30
 bits 30 and 31 index element type
 Fan = 2 << 30
 bits 30 and 31 index element type
 Indexed = BIT(29)
 use glDrawElements if indexed, glDrawArrays o.w.
 NoMaterial = BIT(28)
 set if no material (i.e., texture missing)
 MaterialMask = ~(Strip|Fan|Triangles|Indexed|NoMaterial)
 TypeMask = Strip|Fan|Triangles
enum  {
  Triangles = 0 << 30,
  Strip = 1 << 30,
  Fan = 2 << 30,
  Indexed = BIT(29),
  NoMaterial = BIT(28),
  MaterialMask = ~(Strip|Fan|Triangles|Indexed|NoMaterial),
  TypeMask = Strip|Fan|Triangles
}

Public Attributes

U16 start
U16 numElements
S32 matIndex
 holds material index & element type (see above enum)


Member Enumeration Documentation

anonymous enum

Enumerator:
Triangles  bits 30 and 31 index element type
Strip  bits 30 and 31 index element type
Fan  bits 30 and 31 index element type
Indexed  use glDrawElements if indexed, glDrawArrays o.w.
NoMaterial  set if no material (i.e., texture missing)
MaterialMask 
TypeMask 


Member Data Documentation

holds material index & element type (see above enum)