Torque3D Documentation / _generateds / TSDrawPrimitive

TSDrawPrimitive

Engine/source/ts/tsMesh.h

More...

Public Types

enum
_Anonymous_ {
  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

holds material index & element type (see above enum)

Detailed Description

Public Types

@206

Enumerator

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

Public Attributes

S32 matIndex 

holds material index & element type (see above enum)

S32 numElements 
S32 start