Microsoft DirectX 8.1 (Visual Basic)

D3DXBaseMesh.DrawSubset

Draws a subset of a mesh.

object.DrawSubset( _ 
    attribId  As Long)

Parts

object
Object expression that resolves to a D3DXBaseMesh object.
attribId
A Long value that specifies which subset of the mesh to draw. This value is used to differentiate faces in a mesh as belonging to one or more attribute groups.

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 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 (attribId) when drawing the frame.

See Also

D3DXBaseMesh.GetAttributeTable