d3d9.dllSetAttributeTable
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXMesh::SetAttributeTable Method


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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft 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


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.