BaseMesh.GetAttributeTable Method

Language:

Retrieves an attribute table for a mesh.

Definition

Visual Basic Public Function GetAttributeTable() As AttributeRange()
C# public AttributeRange[] GetAttributeTable();
C++ public:
array<AttributeRange>^ GetAttributeTable();
JScript public function GetAttributeTable() : AttributeRange[];

Return Value

Microsoft.DirectX.Direct3D.AttributeRange[]
Array of AttributeRange structures, which represent each entry in the attribute table.

Remarks

An attribute table is created by calling Mesh.Optimize and passing OptimizeAttrSort for the param_MeshFlags_flags parameter.

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
ArgumentException Leave Site There is no attribute table.
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

Applies To

Mesh, ProgressiveMesh

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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