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

The IParameters graph node interface.

Parameters nodes hold different individual parameters that may be used by a Graph::IProgram to parameterize its output. There exist a number of predefined values for e.g. lighting component color values (see Graph::IFixedParameters); in addition, custom parameters can be added to control the behavior of user-defined GPU shader programs (see Graph::IGenericParameters).

Use the Graph::IStateSlot base interface to set or get the parameters slot index these parameters are temporarily attached to if any children are present.

See sceneGraphStatesSlotsUnits for an overview of state handling during scene graph traversal.
See Graph::IParametersState for activating parameters for rendering. See Graph::IProgram for defining GPU programs that act on these parameters.


Table members

Inherited


Murl.Graph.IStateSlot

Methods


GetNodeInterface()

Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.

Murl.Graph.INode GetNodeInterface()

Returns
Murl.Graph.INode The constant Graph::INode interface, or null if not available

GetSubParametersNodeTarget()

Get the constant container holding the optional child parameters. This method returns a constant pointer to the node's Graph::IParametersNodeTarget sub container, which is used to store multiple sub-parameters.

Murl.Graph.IGenericNodeTarget.GraphIParameters GetSubParametersNodeTarget()

Returns
Murl.Graph.IGenericNodeTarget.GraphIParameters The constant Graph::IParametersNodeTarget container, or null if not available.

GetNumberOfDetailLevels()

Get the parameters' number of detail levels.

Integer GetNumberOfDetailLevels()

Returns
Integer The number of detail levels.

GetNumberOfStages(detailLevel)

Get the parameters' number of stages for a given detail level.

Integer GetNumberOfStages(Integer detailLevel)

Parameters
detailLevelThe detail level to query.
Returns
Integer The number of stages.