Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IStateUnit

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.


Table members

Methods


SetUnit(unit)

Set the unit index to use.

Boolean SetUnit(Integer unit)

Parameters
unitThe unit index.
Returns
Boolean true if successful.

GetUnit()

Get the unit index to use.

Integer GetUnit()

Returns
Integer The unit index.