Microsoft DirectX 8.1 (Visual Basic)

D3DXBaseMesh.GetAttributeTable

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

object.GetAttributeTable( _ 
    AttribTable As Any, _ 
    AttribTabSize As Long)

Parts

object
Object expression that resolves to a D3DXBaseMesh object.
AttribTable
First element of an array of D3DXATTRIBUTERANGE types, representing the entries in the mesh's attribute table. Specify ByVal 0 to retrieve the value for AttribTabSize.
AttribTabSize
Either the number of entries stored in AttribTable, or a value to be filled in with the number of entries stored in the attribute table for the mesh.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Applies To

This method applies to the following classes, which implement methods from D3DXBaseMesh.

Remarks

An attribute table is created by D3DXMesh.Optimize and by passing D3DXMESHOPT_ATTRSORT for the Flags parameter.

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.