ID3DX10Mesh::GetAttributeTable method

Retrieves either an attribute table for a mesh, or the number of entries stored in an attribute table for a mesh.

Syntax


HRESULT GetAttributeTable(
  [in] D3DX10_ATTRIBUTE_RANGE *pAttribTable,
  [in] UINT                   *pAttribTableSize
);

Parameters

pAttribTable [in]

Type: D3DX10_ATTRIBUTE_RANGE*

Pointer to an array of D3DX10_ATTRIBUTE_RANGE structures, representing the entries in the mesh's attribute table. Specify NULL to retrieve the value for pAttribTableSize.

pAttribTableSize [in]

Type: UINT*

Pointer to either the number of entries stored in pAttribTable or a value to be filled in with the number of entries stored in the attribute table for the mesh.

Return value

Type: HRESULT

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

Remarks

An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states, materials, and so on. In addition, the application can use the attribute table to hide portions of a mesh by not drawing a given attribute identifier when drawing the frame.

Requirements

Header

D3DX10.h

Library

D3DX10.lib

See also

ID3DX10Mesh
D3DX Interfaces

 

 

Show: