![]() |
Murl Engine API
Version 2018.3
|
The IAttribute interface. More...
#include <murl_graph_i_attribute.h>
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.
Inherited by Murl::Graph::Attribute.
Public Member Functions | |
virtual SInt32 | GetIndex () const =0 |
Get the zero-based index of this attribute. More... | |
virtual const String & | GetName () const =0 |
Get the attribute's user-defined variable name. More... | |
virtual IEnums::AttributeItem | GetItem () const =0 |
Get the attribute's predefined item. More... | |
virtual IEnums::AttributeType | GetType () const =0 |
Get the attribute's data type. More... | |
virtual Bool | IsNormalizing () const =0 |
Query if the attribute values are being normalized in the shader. More... | |
virtual UInt32 | GetByteOffset () const =0 |
Get the attribute's byte offset. More... | |
|
pure virtual |
Get the zero-based index of this attribute.
|
pure virtual |
Get the attribute's user-defined variable name.
If the attribute is a predefined one, this method always returns an empty string.
|
pure virtual |
Get the attribute's predefined item.
If the attribute is a user-defined one, this method always returns IEnums::ATTRIBUTE_ITEM_CUSTOM.
|
pure virtual |
Get the attribute's data type.
|
pure virtual |
Query if the attribute values are being normalized in the shader.
|
pure virtual |
Get the attribute's byte offset.
This method returns the attribute's byte offset relative to the beginning of a single vertex entry.