Microsoft DirectX 9.0 SDK Update (October 2004)

BaseMesh.DrawSubset Method

Language:

Note: This documentation is preliminary and is subject to change.

Draws a subset of a mesh.

Definition

Visual Basic .NET Public Sub DrawSubset( _
    ByVal attributeID As Integer _
)
C# public void DrawSubset(
    int attributeID
);
Managed C++ public: void DrawSubset(
    int attributeID
);
JScript .NET public function DrawSubset(
    attributeID : int
);

Parameters

attributeID System.Int32. An Int32 Leave Site 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.

Remarks

An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states and materials. The application can use the attribute table to hide portions of a mesh by leaving out a given attribute identifier (attributeID) when drawing the frame. Attribute tables can also be used for application defined purposes.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

Applies To

Mesh, ProgressiveMesh

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center