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

The IStateSlot property interface.

This interface provides a common way to select a generic "slot" in 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, materials etc. are assigned to specific slots during scene graph traversal, using state nodes like Graph::ITextureState or Graph::IMaterialState, respectively. In this case, these slots serve as a connection for rendering geometry with dynamically assigned properties. See also Graph::IStateUnit.


Table members

Methods


SetSlot(slot)

Set the slot index to use.

Boolean SetSlot(Integer slot)

Parameters
slotThe slot index.
Returns
Boolean true if successful.

GetSlot()

Get the slot index to use.

Integer GetSlot()

Returns
Integer The slot index.