Share via


Mesh.SetAttributeTable(AttributeRange[]) Method (Microsoft.DirectX.Direct3D)

Sets a mesh's attribute table and specifies the number of entries stored in it.

Definition

Visual Basic Public Sub SetAttributeTable( _
    ByVal table() As AttributeRange _
)
C# public void SetAttributeTable(
    AttributeRange[] table
);
C++ public:
void SetAttributeTable(
    array<AttributeRange>^ table
);
JScript public function SetAttributeTable(
    table : AttributeRange[]
);

Parameters

table Microsoft.DirectX.Direct3D.AttributeRange[]
Array of AttributeRange structures that represent the entries in the mesh attribute table.

Remarks

If an application tracks the information in an attribute table and rearranges the table as a result of changes to attributes or faces, the SetAttributeTable method allows the application to update the attribute tables instead of calling Optimize again.

Exceptions

InvalidCallException

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

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.

See Also