ID3DXMesh::SetAttributeTable method

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

Syntax

HRESULT SetAttributeTable(
  [in] const D3DXATTRIBUTERANGE *pAttribTable,
  [in]       DWORD              cAttribTableSize
);

Parameters

pAttribTable [in]

Type: const D3DXATTRIBUTERANGE*

Pointer to an array of D3DXATTRIBUTERANGE structures, representing the entries in the mesh attribute table.

cAttribTableSize [in]

Type: DWORD

Number of attributes in the mesh attribute table.

Return value

Type: HRESULT

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

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXMesh

ID3DXMesh::LockAttributeBuffer

ID3DXMesh::LockAttributeBuffer