Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PrimitiveType Enumeration
Collapse the table of content
Expand the table of content

PrimitiveType Enumeration

Defines how data in a vertex stream is interpreted during a draw call.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public enum PrimitiveType

 Member nameDescription
LineListRenders the vertices as a list of isolated straight line segments. Calls that use this primitive type fail if the count is less than two or is odd.
LineStripRenders the vertices as a single polyline. Calls that use this primitive type fail if the count is less than two.
PointListRenders the vertices as a collection of isolated points. This value is unsupported for indexed primitives.
TriangleFanRenders the vertices as a triangle fan.
TriangleListRenders 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.
TriangleStripRenders the vertices as a triangle strip. The back-face culling flag is flipped automatically on even-numbered triangles.

Using triangle strips or triangle fans is often more efficient than using triangle lists because fewer vertices are duplicated.

Xbox 360, Windows XP SP2, Windows Vista

© 2015 Microsoft