다음을 통해 공유


GraphicsDevice.DrawIndexedPrimitives Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public MustOverride Sub DrawIndexedPrimitives ( _
    primitiveType As PrimitiveType, _
    baseVertex As Integer, _
    minVertexIndex As Integer, _
    numVertices As Integer, _
    startIndex As Integer, _
    primitiveCount As Integer _
)
public abstract void DrawIndexedPrimitives(
    PrimitiveType primitiveType,
    int baseVertex,
    int minVertexIndex,
    int numVertices,
    int startIndex,
    int primitiveCount
)

Parameters

  • 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.

Version Information

Silverlight

Supported in: 5

Platforms

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