ID3DXMesh interface

Applications use the methods of the ID3DXMesh interface to manipulate mesh objects.

Members

The ID3DXMesh interface inherits from ID3DXBaseMesh. ID3DXMesh also has these types of members:

Methods

The ID3DXMesh interface has these methods.

Method Description
LockAttributeBuffer Locks the mesh buffer that contains the mesh attribute data, and returns a pointer to it.
Optimize Generates a new mesh with reordered faces and vertices to optimize drawing performance.
OptimizeInplace Generates 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.

 

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;

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXBaseMesh

D3DX Interfaces

Mesh Functions