Microsoft DirectX 8.0 (C++) |
Applications use the methods of the ID3DXMesh interface to manipulate mesh objects.
The ID3DXMesh interface is obtained by calling either the D3DXCreateMesh or D3DXCreateMeshFVF functions.
The ID3DXMesh interface inherits the following ID3DXBaseMesh methods, which can be organized into the following groups.
Buffers | GetIndexBuffer |
GetVertexBuffer | |
LockIndexBuffer | |
LockVertexBuffer | |
UnlockIndexBuffer | |
UnlockVertexBuffer | |
Copying | CloneMesh |
CloneMeshFVF | |
Faces | GetNumFaces |
Information | GetDevice |
GetOptions | |
Rendering | DrawSubset |
GetAttributeTable | |
Vertices | GetFVF |
GetNumVertices |
The methods of the ID3DXMesh interface can be organized into the following groups.
Locking | LockAttributeBuffer |
UnlockAttributeBuffer | |
Miscellaneous | ConvertAdjacencyToPointReps |
ConvertPointRepsToAdjacency | |
GenerateAdjacency | |
Optimization | Optimize |
OptimizeInplace |
The ID3DXMesh interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.
IUnknown | AddRef |
QueryInterface | |
Release |
The LPD3DXMESH type is defined as a pointer to the ID3DXMesh interface.
typedef struct ID3DXMesh *LPD3DXMESH;
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.