This topic has not yet been rated - Rate this topic

PrimitiveType Enumeration

Defines how vertex data is ordered.

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

public enum PrimitiveType
  Member name Description
TriangleList The data is ordered as a sequence of triangles; each triangle is described by three new vertices. Back-face culling is affected by the current winding-order render state.
TriangleStrip The data is ordered as a sequence of triangles; each triangle is described by two new vertices and one vertex from the previous triangle. The back-face culling flag is flipped automatically on even-numbered triangles.
LineList The data is ordered as a sequence of line segments; each line segment is described by two new vertices. The count may be any positive integer.
LineStrip The data is ordered as a sequence of line segments; each line segment is described by one new vertex and the last vertex from the previous line seqment. The count may be any positive integer.
A strip is often more efficient than a list because fewer vertices are duplicated.
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
TriangleStrip
Description should read "each triangle is described by one new vertex and two vertices from the previous triangle."