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

The ISubject graph node interface.

Graph::ISubject nodes represent a generic way to define properties like view matrix, projection matrix, view frustum etc. that are common to e.g. cameras and listeners.


Table members

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

SetWorldTransform(worldTransform)

Set the subject's world transform matrix.

Boolean SetWorldTransform(Murl.Math.Matrix worldTransform)

Parameters
worldTransformThe world transform.
Returns
Boolean true if successful.

GetWorldTransform()

Get the subject's world transform matrix.

Murl.Math.Matrix GetWorldTransform()

Returns
Murl.Math.Matrix The world transform.

GetViewMatrix()

Get the subject's view matrix. The view matrix is actually the inverse of the subject's world transform matrix; it is used to transform geometry from world space to view space.

Murl.Math.Matrix GetViewMatrix()

Returns
Murl.Math.Matrix The view matrix.

GetProjectionMatrix()

Get the subject's projection matrix.

Murl.Math.Matrix GetProjectionMatrix()

Returns
Murl.Math.Matrix The projection matrix.