Facebook Twitter YouTube

class Attribute

Defined in:  TSAttributes.h
The Attribute class is the base class for all material attributes.

class Attribute : public ListElement<Attribute>, public Packable

Member Functions
Attribute::GetAttributeType Returns the type of an attribute.
Attribute::GetAttributeFlags Returns the attribute flags.
Attribute::SetAttributeFlags Sets the attribute flags.

Attribute(AttributeType type, unsigned_int32 flags = 0);

The Attribute class is the base class for all material attributes. A list of material attributes is supplied to the RenderSegment class by either attaching a material with the RenderSegment::SetMaterialObjectPointer function or by setting an auxiliary attribute list using the RenderSegment::SetMaterialAttributeList function. These material attributes describe to the Graphics Manager how a renderable object should be shaded.

A Geometry node can have a MaterialObject object attached to it that holds a list of material attributes. In this case, the list of material attributes is automatically applied to the Renderable base class of the Geometry node when it is preprocessed.
Base Classes
ListElement<Attribute> Attributes are stored in a list by the MaterialObject class. The Renderable class also uses lists of attributes.
Packable Attributes can be packed for storage in resources.
See Also