Xors3d Engine
The types of primitive for rendering of meshes and surfaces

Defines

#define PRIMITIVE_LINELIST   2
#define PRIMITIVE_LINESTRIP   3
#define PRIMITIVE_POINTLIST   1
#define PRIMITIVE_TRIANGLEFAN   6
#define PRIMITIVE_TRIANGLELIST   4
#define PRIMITIVE_TRIANGLESTRIP   5

Define Documentation

#define PRIMITIVE_POINTLIST   1

Renders the vertices as a collection of isolated points. This value is unsupported for indexed primitives.

#define PRIMITIVE_LINELIST   2

Renders the vertices as a list of isolated straight line segments.

#define PRIMITIVE_LINESTRIP   3

Renders the vertices as a single polyline.

#define PRIMITIVE_TRIANGLELIST   4

Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle.

#define PRIMITIVE_TRIANGLESTRIP   5

Renders the vertices as a triangle strip. The backface-culling flag is automatically flipped on even-numbered triangles.

#define PRIMITIVE_TRIANGLEFAN   6

Renders the vertices as a triangle fan.