The IStateUnit property interface. More...

#include "murl_graph_i_state_unit.h"

Inheritance diagram for Murl::Graph::IStateUnit:

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...

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.

Member Function Documentation

◆ SetUnit()

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

Set the unit index to use.

unitThe unit index.
true if successful.

◆ GetUnit()

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

Get the unit index to use.

The unit index.

The documentation for this interface was generated from the following file:
  • murl_graph_i_state_unit.h

Copyright © 2011-2018 Spraylight GmbH.