![]() |
![]() |
This interface encapsulates patch mesh functionality.
Method | Description |
---|---|
ID3DXPatchMesh::CloneMesh | Creates a new patch mesh with the specified vertex declaration. |
ID3DXPatchMesh::GenerateAdjacency | Generate a list of mesh edges and the patches that share each edge. |
ID3DXPatchMesh::GetControlVerticesPerPatch | Gets the number of control vertices per patch. |
ID3DXPatchMesh::GetDeclaration | Gets the vertex declaration. |
ID3DXPatchMesh::GetDevice | Gets the device that created the mesh. |
ID3DXPatchMesh::GetDisplaceParam | Gets mesh geometry displacement parameters. |
ID3DXPatchMesh::GetIndexBuffer | Gets the mesh index buffer. |
ID3DXPatchMesh::GetNumPatches | Gets the number of patches in the mesh. |
ID3DXPatchMesh::GetNumVertices | Gets the number of vertices in the mesh. |
ID3DXPatchMesh::GetOptions | Gets the type of patch. |
ID3DXPatchMesh::GetPatchInfo | Gets the attributes of the patch. |
ID3DXPatchMesh::GetTessSize | Gets the size of the tessellated mesh, given a tessellation level. |
ID3DXPatchMesh::GetVertexBuffer | Gets the mesh vertex buffer. |
ID3DXPatchMesh::LockAttributeBuffer | Locks the attribute buffer. |
ID3DXPatchMesh::LockIndexBuffer | Lock the index buffer. |
ID3DXPatchMesh::LockVertexBuffer | Lock the vertex buffer. |
ID3DXPatchMesh::Optimize | Optimizes the patch mesh for efficient tessellation. |
ID3DXPatchMesh::SetDisplaceParam | Sets mesh geometry displacement parameters. |
ID3DXPatchMesh::Tessellate | Performs uniform tessellation based on the tessellation level. |
ID3DXPatchMesh::TessellateAdaptive | Performs adaptive tessellation based on the z-based adaptive tessellation criterion. |
ID3DXPatchMesh::UnlockAttributeBuffer | Unlock the attribute buffer. |
ID3DXPatchMesh::UnlockIndexBuffer | Unlock the index buffer. |
ID3DXPatchMesh::UnlockVertexBuffer | Unlock the vertex buffer. |
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;
Header: Declared in D3dx9mesh.h.
Import Library: Use D3dx9.lib.