GraphicsDevice.DrawPrimitives Method (Microsoft.Xna.Framework.Graphics)

Draw primitives of the specified type from the currently bound vertexbuffers without indexing.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.964)
  • C#
  • VB
  • F#
public void DrawPrimitives(
	PrimitiveType primitiveType, 
	int vertexStart, 
	int primitiveCount
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

primitiveType
Type: Microsoft.Xna.Framework.Graphics.PrimitiveType
The type of primitives to draw.
vertexStart
Type: System.Int32
Index of the vertex to start at.
primitiveCount
Type: System.Int32
The number of primitives to draw.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web