![]() |
![]() |
![]() |
Applications use the methods of the ID3DXMesh interface to manipulate mesh objects.
ID3DXMesh Members
CloneMesh Clones a mesh using a declarator. CloneMeshFVF Clones a mesh using a flexible vertex format (FVF) code. ConvertAdjacencyToPointReps Converts mesh adjacency information to an array of point representatives. ConvertPointRepsToAdjacency Converts point representative data to mesh adjacency information. DrawSubset Draws a subset of a mesh. GenerateAdjacency Generate a list of mesh edges and the faces that share each edge. GetAttributeTable Retrieves either an attribute table for a mesh, or the number of entries stored in an attribute table for a mesh. GetDeclaration Retrieves a declaration describing the vertices in the mesh. GetDevice Retrieves the device associated with the mesh. GetFVF Gets the fixed function vertex value. GetIndexBuffer Retrieves the data in an index buffer. GetNumBytesPerVertex Gets the number of bytes per vertex. GetNumFaces Retrieves the number of faces in the mesh. GetNumVertices Retrieves the number of vertices in the mesh. GetOptions Retrieves the mesh options enabled for this mesh at creation time. GetVertexBuffer Retrieves the data in a vertex buffer. LockAttributeBuffer Locks the mesh buffer that contains the mesh attribute data, and returns a pointer to it. LockIndexBuffer Locks an index buffer and obtains a pointer to the index buffer memory. LockVertexBuffer Locks a vertex buffer and obtains a pointer to the vertex buffer memory. Optimize Generate a new mesh with reordered faces and vertices to optimize drawing performance. OptimizeInplace Generate a mesh with reordered faces and vertices to optimize drawing performance. This method reorders the existing mesh. SetAttributeTable Sets the attribute table for a mesh and the number of entries stored in the table. UnlockAttributeBuffer Unlocks an attribute buffer. UnlockIndexBuffer Unlocks an index buffer. UnlockVertexBuffer Unlocks a vertex buffer. UpdateSemantics This method allows the user to change the mesh declaration without changing the data layout of the vertex buffer. The call is valid only if the old and new declaration formats have the same vertex size.
Remarks
To obtain the ID3DXMesh interface, call either the D3DXCreateMesh or D3DXCreateMeshFVF function.
This interface inherits additional functionality from the ID3DXBaseMesh interface.
The LPD3DXMESH type is defined as a pointer to the ID3DXMesh interface.
typedef struct ID3DXMesh *LPD3DXMESH;
Interface Information
Stock Implementation d3d9.dll Custom Implementation No Inherits from ID3DXBaseMesh Header d3dx9mesh.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
Mesh Functions