torque Torque Game Engine Documentation
TGE Version 1.5.2

TSDrawPrimitive Struct Reference

#include <tsMesh.h>


Public Types

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
}

Data Fields

S16 start
S16 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 


Field Documentation

holds material index & element type (see above enum)




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen