Export (0) Print
Expand All

BaseMesh.DrawSubset(Int32) Method (Microsoft.DirectX.Direct3D)

Draws a subset of a mesh.


Visual BasicPublic Sub DrawSubset( _
    ByVal attributeID As Integer _
C#public void DrawSubset(
    int attributeID
void DrawSubset(
    int attributeID
JScriptpublic function DrawSubset(
    attributeID : int


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


The subset that is specified by attributeID will be rendered by the DrawIndexedPrimitives method, using the TriangleList primitive type, so an index buffer must be properly initialized.

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.

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

Applies To

See Also

© 2014 Microsoft