ID3DXMesh::SetAttributeTable

Sets the attribute table for a mesh and the number of entries stored in the table.

HRESULT SetAttributeTable(
  CONST D3DXATTRIBUTERANGE * pAttribTable,
  DWORD cAttribTableSize
);

Parameters

pAttribTable
[in] Pointer to an array of D3DXATTRIBUTERANGE structures, representing the entries in the mesh attribute table.
cAttribTableSize
[in] Number of attributes in the mesh attribute table.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

If an application keeps track of the information in an attribute table, and rearranges the table as a result of changes to attributes or faces, this method allows the application to update the attribute tables instead of calling ID3DXMesh::Optimize again.

Requirements

Header: Declared in D3dx9mesh.h.

See Also

ID3DXMesh::LockAttributeBuffer, ID3DXMesh::LockAttributeBuffer