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 StringGetName () 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()

virtual SInt32 Murl::Graph::IAttribute::GetIndex ( ) const
pure virtual

Get the zero-based index of this attribute.

Returns
The attribute's index inside the parent container.

◆ GetName()

virtual const String& Murl::Graph::IAttribute::GetName ( ) const
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()

virtual IEnums::AttributeItem Murl::Graph::IAttribute::GetItem ( ) const
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()

virtual IEnums::AttributeType Murl::Graph::IAttribute::GetType ( ) const
pure virtual

Get the attribute's data type.

Returns
The attribute's data type.

◆ IsNormalizing()

virtual Bool Murl::Graph::IAttribute::IsNormalizing ( ) const
pure virtual

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

Returns
true if normalized.

◆ GetByteOffset()

virtual UInt32 Murl::Graph::IAttribute::GetByteOffset ( ) const
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


Copyright © 2011-2018 Spraylight GmbH.