Primitive Struct Reference

Structure representing the primitive. More...

List of all members.

Public Member Functions

 Primitive (DrawMode mode, int first, int count, int userData)
 Creates the structure representing the primitive.
void Set (DrawMode mode, int first, int count, int userData)
 Sets the structure representing the primitive.

Public Attributes

DrawMode Mode
 Primitive rendering mode.
ushort First
 Starting vertex of the primitive.
ushort Count
 Number of vertices in the primitive.
ushort UserData
 User data.

Detailed Description

Structure representing the primitive.


Constructor & Destructor Documentation

Primitive ( DrawMode  mode,
int  first,
int  count,
int  userData 
)

Creates the structure representing the primitive.

Parameters:
modePrimitive rendering mode
firstStarting vertex of the primitive
countNumber of vertices in the primitive
userDataUser data

Member Function Documentation

void Set ( DrawMode  mode,
int  first,
int  count,
int  userData 
)

Sets the structure representing the primitive.

Parameters:
modePrimitive rendering mode
firstStarting vertex of the primitive
countNumber of vertices in the primitive
userDataUser data