Murl Engine API  Version 2018.3
Murl::Graph::IStateUnit Interface Referenceabstract

The IStateUnit property interface. More...

#include <murl_graph_i_state_unit.h>

Detailed Description

The IStateUnit property interface.

This interface provides a common way to select a generic "unit" for which an object is used. One application of this mechanism is found in the Graph::IProcessOutputTracker interface, where e.g. different video rendering entities like textures, light groups etc. are assigned to one available unit (e.g. 8 parallel texture units in the GPU), using state nodes like Graph::ITextureState or Graph::ILightState, respectively. See also Graph::IStateSlot.

Inheritance diagram for Murl::Graph::IStateUnit:
Murl::Graph::IBone Murl::Graph::IBoneState Murl::Graph::IBoneStateCopy Murl::Graph::ILight Murl::Graph::ILightState Murl::Graph::ILightStateCopy Murl::Graph::ITexture Murl::Graph::ITextureState Murl::Graph::ITextureStateCopy Murl::Graph::ITimeline Murl::Graph::ITimelineState Murl::Graph::ITimelineStateCopy

Public Member Functions

virtual Bool SetUnit (UInt32 unit)=0
 Set the unit index to use. More...
 
virtual UInt32 GetUnit () const =0
 Get the unit index to use. More...
 

Member Function Documentation

◆ SetUnit()

virtual Bool Murl::Graph::IStateUnit::SetUnit ( UInt32  unit)
pure virtual

Set the unit index to use.

Parameters
unitThe unit index.
Returns
true if successful.

◆ GetUnit()

virtual UInt32 Murl::Graph::IStateUnit::GetUnit ( ) const
pure virtual

Get the unit index to use.

Returns
The unit index.

The documentation for this interface was generated from the following file: