PrimitiveType Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines how vertex data is ordered.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)
Syntax
'Declaration
Public Enumeration PrimitiveType
public enum PrimitiveType
Members
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 segment. The count may be any positive integer. |
Remarks
A strip is often more efficient than a list because fewer vertices are duplicated.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.