CONST_D3DPRIMITIVETYPE
Defines the primitives supported by Microsoft® Direct3D®.
Enum CONST_D3DPRIMITIVETYPE
D3DPT_POINTLIST = 1
D3DPT_LINELIST = 2
D3DPT_LINESTRIP = 3
D3DPT_TRIANGLELIST = 4
D3DPT_TRIANGLESTRIP = 5
D3DPT_TRIANGLEFAN = 6
End Enum
Constants
- D3DPT_POINTLIST
- Renders the vertices as a collection of isolated points.
- D3DPT_LINELIST
- Renders the vertices as a list of isolated straight line segments. Calls using this primitive type fail if the count is less than 2 or is odd.
- D3DPT_LINESTRIP
- Renders the vertices as a single polyline. Calls using this primitive type fail if the count is less than 2.
- D3DPT_TRIANGLELIST
- Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle.
Backface 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.
- D3DPT_TRIANGLEFAN
- Renders the vertices as a triangle fan.
Remarks
Using triangle strips or fans is often more efficient than using triangle lists because fewer vertices are duplicated. For more information see Triangle Strips and Triangle Fans.
See Also
Direct3DDevice8.DrawIndexedPrimitive, Direct3DDevice8.DrawIndexedPrimitiveUP, Direct3DDevice8.DrawPrimitive, Direct3DDevice8.DrawPrimitiveUP