共用方式為


Device.DrawIndexedPrimitives Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Sub DrawIndexedPrimitives ( _
    primitiveType As PrimitiveType, _
    baseVertex As Integer, _
    minVertexIndex As Integer, _
    numVertices As Integer, _
    startIndex As Integer, _
    primCount As Integer _
)
'Usage
Dim instance As Device
Dim primitiveType As PrimitiveType
Dim baseVertex As Integer
Dim minVertexIndex As Integer
Dim numVertices As Integer
Dim startIndex As Integer
Dim primCount As Integer

instance.DrawIndexedPrimitives(primitiveType, _
    baseVertex, minVertexIndex, numVertices, _
    startIndex, primCount)
public void DrawIndexedPrimitives(
    PrimitiveType primitiveType,
    int baseVertex,
    int minVertexIndex,
    int numVertices,
    int startIndex,
    int primCount
)
public:
void DrawIndexedPrimitives(
    PrimitiveType primitiveType, 
    int baseVertex, 
    int minVertexIndex, 
    int numVertices, 
    int startIndex, 
    int primCount
)
member DrawIndexedPrimitives : 
        primitiveType:PrimitiveType * 
        baseVertex:int * 
        minVertexIndex:int * 
        numVertices:int * 
        startIndex:int * 
        primCount:int -> unit 

Parameters

  • baseVertex
    Type: System.Int32
    An offset from the start of the index buffer to the first vertex index.
  • minVertexIndex
    Type: System.Int32
    A minimum vertex index for vertices used during the call.
  • numVertices
    Type: System.Int32
    A number of vertices used during the call, starting from baseVertex to minVertexIndex.
  • startIndex
    Type: System.Int32
    The location in the index array at which to start reading vertices.
  • primCount
    Type: System.Int32
    A number of primitives to render. The number of vertices used is a function of the primCount and PrimitiveType parameters. To determine the maximum number of primitives allowed, check the MaxPrimitiveCount property member of the Caps structure.

Exceptions

Exception Condition
InvalidCallException

The method call is invalid. For example, a parameter might contain an invalid value.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Device Class

Device Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace