Microsoft DirectX 9.0 SDK Update (October 2004)

PatchMesh.PatchMesh Constructor

Language:

Note: This documentation is preliminary and is subject to change.

Creates a mesh from a control patch mesh.

Definition

Visual Basic .NET Public Sub New( _
    ByVal device As Device, _
    ByVal information As PatchInformation, _
    ByVal numberPatches As Integer, _
    ByVal numberVertices As Integer, _
    ByVal declaration() As VertexElement _
)
C# public PatchMesh(
    Device device,
    PatchInformation information,
    int numberPatches,
    int numberVertices,
    VertexElement[] declaration
);
Managed C++ public: PatchMesh(
    Device *device,
    PatchInformation information,
    int numberPatches,
    int numberVertices,
    VertexElement declaration __gc[]
);
JScript .NET public function PatchMesh(
    device : Device,
    information : PatchInformation,
    numberPatches : int,
    numberVertices : int,
    declaration : VertexElement[]
);

Parameters

device Microsoft.DirectX.Direct3D.Device. The Device to associate with the patch mesh.
information Microsoft.DirectX.Direct3D.PatchInformation. Patch information structure. For more information, see PatchInformation.
numberPatches System.Int32. Number of patches.
numberVertices System.Int32. Number of control vertices in the patch.
declaration Microsoft.DirectX.Direct3D.VertexElement[]. Array of VertexElement structures that describe the vertex format for the returned mesh.

Remarks

This method converts an input patch mesh to a tessellated mesh. Patch meshes use 16-bit index buffers. Therefore, indices to LockIndexBuffer are 16 bits.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center