Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
This interface encapsulates patch mesh functionality.
Members
The ID3DXPatchMesh interface inherits from the IUnknown interface. ID3DXPatchMesh also has these types of members:
Methods
The ID3DXPatchMesh interface has these methods.
| Method | Description |
|---|---|
| CloneMesh | Creates a new patch mesh with the specified vertex declaration. |
| GenerateAdjacency | Generate a list of mesh edges and the patches that share each edge. |
| 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. |
| GetNumVertices | Gets the number of vertices 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 | Locks 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;
Requirements
| Requirement | Value |
|---|---|
| Header |
|
| Library |
|
See also