PatchMesh.PatchMesh Constructor |
Language: |
Creates a mesh from a control patch mesh.
Visual Basic 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
);C++ public:
PatchMesh(
Device^ device,
PatchInformation information,
int numberPatches,
int numberVertices,
array<VertexElement>^ declaration
);JScript public function PatchMesh(
device : Device,
information : PatchInformation,
numberPatches : int,
numberVertices : int,
declaration : VertexElement[]
);
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.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center