Renders the given geometric primitive with data specified by the user.
Namespace:
Hilva.MaterialsAssembly: Hilva (in Hilva.dll)
Syntax
| C# |
|---|
public void DrawUserPrimitives<T>( PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount ) where T : struct, new() |
Parameters
- primitiveType
- Type: PrimitiveType
Describes the type of primitive to render.
- vertexData
- Type: array<
T
>[]()[]
The vertex data.
- vertexOffset
- Type: System..::.Int32
Offset at which to begin reading vertexData.
- 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 primitiveCount and primitiveType.
Type Parameters
- T