PrimitiveType Enumeration (Microsoft.Xna.Framework.Graphics)

Defines how vertex data is ordered.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.819)
  • C#
  • VB
  • F#
public enum PrimitiveType

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The PrimitiveType type exposes the following members.

  Platforms Name Description
LineList Renders the vertices as a list of isolated straight line segments; the count may be any positive integer. 
LineStrip Renders the vertices as a single polyline; the count may be any positive integer. 
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. 
TriangleStrip Renders the vertices as a triangle strip. The back-face culling flag is flipped automatically on even-numbered triangles. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web