GraphicsDevice.DrawUserIndexedPrimitives<T> Method (Microsoft.Xna.Framework.Graphics)
Draw primitives of the specified type by indexing into the given array of vertices with 16-bit indices.
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#
public void DrawUserIndexedPrimitives<T>( PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, Int16[] indexData, int indexOffset, int primitiveCount, VertexDeclaration vertexDeclaration ) where T : ValueType, new()
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 with the vertices.
- vertexData
-
Type: T[]
An array of vertices to draw.
- vertexOffset
-
Type: System.Int32
The index in the array of the first vertex to draw.
- numVertices
-
Type: System.Int32
The number of vertices to draw.
- indexData
-
Type: System.Int16[]
The index data.
- indexOffset
-
Type: System.Int32
The index in the array of indices of the first index to use
- primitiveCount
-
Type: System.Int32
The number of primitives to draw.
- vertexDeclaration
-
Type: Microsoft.Xna.Framework.Graphics.VertexDeclaration
The layout of the vertices.
All indices in the vertex buffer are interpreted relative to the specified vertexOffset.
For example a value of zero in the array of indices points to the vertex at index vertexOffset
in the array of vertices.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web