Primitive Types

Top  Previous  Next

Constants used with the C3DMesh::CreateMeshEx method

 

Constant

Description

D3DPT_LINELIST

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

D3DPT_LINESTRIP

Renders the vertices as a single polyline.

D3DPT_POINTLIST

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

D3DPT_TRIANGLEFAN

Renders the vertices as a triangle fan.

D3DPT_TRIANGLELIST

Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle. Back-face culling is affected by the current winding-order render state.

D3DPT_TRIANGLESTRIP

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