Export (0) Print
Expand All

GraphicsDevice.DrawIndexedPrimitives Method

Renders the specified geometric primitive, based on indexing into an array of vertices.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

public abstract void DrawIndexedPrimitives(
	PrimitiveType primitiveType,
	int baseVertex,
	int minVertexIndex,
	int numVertices,
	int startIndex,
	int primitiveCount
)

Parameters

primitiveType
Type: Microsoft.Xna.Framework.Graphics.PrimitiveType
Describes the type of primitive to render.
baseVertex
Type: System.Int32
Offset to add to each vertex index in the index buffer.
minVertexIndex
Type: System.Int32
Minimum vertex index for vertices used during the call. The minVertexIndex parameter and all of the indices in the index stream are relative to the baseVertex parameter.
numVertices
Type: System.Int32
Number of vertices used during the call. The first vertex is located at index: baseVertex + minVertexIndex.
startIndex
Type: System.Int32
Location in the index array at which to start reading vertices.
primitiveCount
Type: System.Int32
Number of primitives to render. The number of vertices used is a function of primitiveCount and primitiveType.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft