Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IAttribute

The IAttribute interface.

This interface represents a generic vertex attribute object that exposes properties such as predefined item, variable name, data type or byte offset into a vertex array entry.


Table members

Methods


GetIndex()

Get the zero-based index of this attribute.

Integer GetIndex()

Returns
Integer The attribute's index inside the parent container.

GetName()

Get the attribute's user-defined variable name. If the attribute is a predefined one, this method always returns an empty string.

String GetName()

Returns
String The attribute's variable name.

GetItem()

Get the attribute's predefined item. If the attribute is a user-defined one, this method always returns IEnums::ATTRIBUTE_ITEM_CUSTOM.

Murl.IEnums.AttributeItem GetItem()

Returns
Murl.IEnums.AttributeItem The attribute item.

GetType()

Get the attribute's data type.

Murl.IEnums.AttributeType GetType()

Returns
Murl.IEnums.AttributeType The attribute's data type.

IsNormalizing()

Query if the attribute values are being normalized in the shader.

Boolean IsNormalizing()

Returns
Boolean true if normalized.

GetByteOffset()

Get the attribute's byte offset. This method returns the attribute's byte offset relative to the beginning of a single vertex entry.

Integer GetByteOffset()

Returns
Integer The attribute's byte offset within a vertex entry.