Renders geometric primitives with indexed data specified by the user, specifying
an index buffer as an array of type System.Int32.
Namespace:
Hilva.MaterialsAssembly: Hilva (in Hilva.dll)
Syntax
| C# |
|---|
public void DrawUserIndexedPrimitives<T>( PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, int[] indexData, int indexOffset, int primitiveCount ) where T : struct, new() |
Parameters
- primitiveType
- Type: PrimitiveType
Describes the type of primitive to render.
- vertexData
- Type: array<
T
>[]()[]
The vertex buffer indexed by indexData.
- vertexOffset
- Type: System..::.Int32
Offset to add to each vertex index in the index buffer.
- numVertices
- Type: System..::.Int32
Number of vertices used during this call. The first vertex is located at index minVertexIndex.
- indexData
- Type: array<
System..::.Int32
>[]()[]
A list of indices into the vertex buffer, given in the order that you want the vertices to render. Using an array of type System.Int32, which uses 32 bits per element, allows you to index a greater number of elements in the vertex buffer.
- indexOffset
- Type: System..::.Int32
Location in the index array at which to start reading vertices.
- primitiveCount
- Type: System..::.Int32
Number of primitives to render. The maximum number of primitives allowed is determined by checking GraphicsDeviceCapabilities.MaxPrimitiveCount. (The number of indices is a function of the primitive count and the primitive type.)
Type Parameters
- T