ID3DX10Mesh::SetAttributeTable method

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

Syntax

HRESULT SetAttributeTable(
  [in] const D3DX10_ATTRIBUTE_RANGE *pAttribTable,
  [in]       UINT                   cAttribTableSize
);

Parameters

pAttribTable [in]

Type: const D3DX10_ATTRIBUTE_RANGE*

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

cAttribTableSize [in]

Type: UINT

Number of attributes in the mesh attribute table.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

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 ID3DX10Mesh::Optimize again.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Mesh

D3DX Interfaces