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
  • 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.


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

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop