The IAttribute interface. More...
#include "murl_graph_i_attribute.h"
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... | |
Detailed Description
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.
Member Function Documentation
◆ GetIndex()
|
pure virtual |
Get the zero-based index of this attribute.
- Returns
- The attribute's index inside the parent container.
◆ GetName()
|
pure virtual |
Get the attribute's user-defined variable name.
If the attribute is a predefined one, this method always returns an empty string.
- Returns
- The attribute's variable name.
◆ GetItem()
|
pure virtual |
Get the attribute's predefined item.
If the attribute is a user-defined one, this method always returns IEnums::ATTRIBUTE_ITEM_CUSTOM.
- Returns
- The attribute item.
◆ GetType()
|
pure virtual |
Get the attribute's data type.
- Returns
- The attribute's data type.
◆ IsNormalizing()
|
pure virtual |
Query if the attribute values are being normalized in the shader.
- Returns
- true if normalized.
◆ GetByteOffset()
|
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.
- Returns
- The attribute's byte offset within a vertex entry.
The documentation for this interface was generated from the following file:
- murl_graph_i_attribute.h