GraphicsDevice.DrawInstancedPrimitives Method (Microsoft.Xna.Framework.Graphics)
Draw instanced geometry from the bound vertex buffers and index buffer.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- C#
- VB
- F#
[ObsoleteAttribute("Use DrawInstancedPrimitives(PrimitiveType primitiveType, int baseVertex, int startIndex, int primitiveCount, int instanceCount) instead. In future versions this method can be removed.")] public void DrawInstancedPrimitives( PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount )
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 in the index buffer.
- baseVertex
-
Type: System.Int32
Used to offset the vertex range indexed from the vertex buffer.
- minVertexIndex
-
Type: System.Int32
This is unused and remains here only for XNA API compatibility.
- numVertices
-
Type: System.Int32
This is unused and remains here only for XNA API compatibility.
- startIndex
-
Type: System.Int32
The index within the index buffer to start drawing from.
- primitiveCount
-
Type: System.Int32
The number of primitives in a single instance.
- instanceCount
-
Type: System.Int32
The number of instances to render.
Note that minVertexIndex and numVertices are unused in MonoGame and will be ignored.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web