?/TD>
Microsoft DirectX 9.0

ID3DXPatchMesh Interface


This interface encapsulates patch mesh functionality.

ID3DXPatchMesh Members

CloneMesh Creates a new patch mesh with the specified vertex declaration.
GenerateAdjacency Generates adjacency information based on mesh indices.
GetControlVerticesPerPatch Gets the number of control vertices per patch.
GetDeclaration Gets the vertex declaration.
GetDevice Gets the device that created the mesh.
GetDisplaceParam Gets mesh geometry displacement parameters.
GetIndexBuffer Gets the mesh index buffer.
GetNumPatches Gets the number of patches in the mesh.
GetOptions Gets the type of patch.
GetPatchInfo Gets the attributes of the patch.
GetTessSize Gets the size of the tessellated mesh, given a tessellation level.
GetVertexBuffer Gets the mesh vertex buffer.
LockAttributeBuffer Lock the attribute buffer.
LockIndexBuffer Lock the index buffer.
LockVertexBuffer Lock the vertex buffer.
Optimize Optimizes the patch mesh for efficient tessellation.
SetDisplaceParam Sets mesh geometry displacement parameters.
Tessellate Performs uniform tessellation based on the tessellation level.
TessellateAdaptive Performs adaptive tessellation based on the z-based adaptive tessellation criterion.
UnlockAttributeBuffer Unlock the attribute buffer.
UnlockIndexBuffer Unlock the index buffer.
UnlockVertexBuffer Unlock the vertex buffer.

Remarks

A patch mesh is a mesh that consists of a series of patches.

To obtain the ID3DXPatchMesh interface, call the D3DXCreatePatchMesh function.

The LPD3DXPATCHMESH type is defined as a pointer to the ID3DXPatchMesh interface, as follows:

typedef struct ID3DXPatchMesh *LPD3DXPATCHMESH;

Interface Information

Inherits fromIUnknown
Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

Mesh Functions


© 2002 Microsoft Corporation. All rights reserved.