Microsoft DirectX 8.1 (Visual Basic) |
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)
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.
This method applies to the following classes, which implement methods from D3DXBaseMesh.
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.