Applications use the methods of the ID3DXBaseMesh interface to manipulate and query mesh and progressive mesh objects.
ID3DXBaseMeshMethod | Description |
---|---|
ID3DXBaseMesh::CloneMesh | Clones a mesh using a declarator. |
ID3DXBaseMesh::CloneMeshFVF | Clones a mesh using a flexible vertex format (FVF) code. |
ID3DXBaseMesh::ConvertAdjacencyToPointReps | Converts mesh adjacency information to an array of point representatives. |
ID3DXBaseMesh::ConvertPointRepsToAdjacency | Converts point representative data to mesh adjacency information. |
ID3DXBaseMesh::DrawSubset | Draws a subset of a mesh. |
ID3DXBaseMesh::GenerateAdjacency | Generate a list of mesh edges, as well as a list of faces that share each edge. |
ID3DXBaseMesh::GetAttributeTable | Retrieves either an attribute table for a mesh, or the number of entries stored in an attribute table for a mesh. |
ID3DXBaseMesh::GetDeclaration | Retrieves a declaration describing the vertices in the mesh. |
ID3DXBaseMesh::GetDevice | Retrieves the device associated with the mesh. |
ID3DXBaseMesh::GetFVF | Gets the fixed function vertex value. |
ID3DXBaseMesh::GetIndexBuffer | Retrieves the data in an index buffer. |
ID3DXBaseMesh::GetNumBytesPerVertex | Gets the number of bytes per vertex. |
ID3DXBaseMesh::GetNumFaces | Retrieves the number of faces in the mesh. |
ID3DXBaseMesh::GetNumVertices | Retrieves the number of vertices in the mesh. |
ID3DXBaseMesh::GetOptions | Retrieves the mesh options enabled for this mesh at creation time. |
ID3DXBaseMesh::GetVertexBuffer | Retrieves the vertex buffer associated with the mesh. |
ID3DXBaseMesh::LockIndexBuffer | Locks an index buffer and obtains a pointer to the index buffer memory. |
ID3DXBaseMesh::LockVertexBuffer | Locks a vertex buffer and obtains a pointer to the vertex buffer memory. |
ID3DXBaseMesh::UnlockIndexBuffer | Unlocks an index buffer. |
ID3DXBaseMesh::UnlockVertexBuffer | Unlocks a vertex buffer. |
ID3DXBaseMesh::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. |
A mesh is an object made up of a set of polygonal faces. A mesh defines a set of vertices and a set of faces (the faces are defined in terms of the vertices and normals of the mesh).
The LPD3DXBASEMESH type is defined as a pointer to the ID3DXBaseMesh interface.
typedef struct ID3DXBaseMesh *LPD3DXBASEMESH;
Header: Declared in D3dx9mesh.h.
Import Library: Use D3dx9.lib.