![]() |
![]() |
![]() |
Sets the attribute table for a mesh and the number of entries stored in the table.
Syntax
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 Value
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.
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.
See Also
ID3DXMesh::LockAttributeBuffer, ID3DXMesh::GetAttributeTable