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

The IGenericGeometry graph node interface.

This interface represents a generic geometry object for rendering, composed of a vertex buffer holding individual vertices with different attributes, and an index buffer holding a sequence of indices into that vertex buffer.

Use the Graph::IVertexBuffer and Graph::IIndexBuffer base interfaces to access the underlying vertex and index data, respectively.


Table members

Inherited


Murl.Graph.IDrawable
Murl.Graph.IIndexBuffer
Murl.Graph.IVertexBuffer

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

GetTransformInterface()

Get the constant Graph::ITransform interface. This method returns a constant pointer to the node's Graph::ITransform interface, to be able to query the node's transformation matrix and depth order.

Murl.Graph.ITransform GetTransformInterface()

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

SetBoundingBox(boundingBox)

Set the bounding box used for culling and aligning.

Boolean SetBoundingBox(Murl.Math.Box boundingBox)

Parameters
boundingBoxThe bounding box.
Returns
Boolean true if successful.

GetBoundingBox()

Get the bounding box used for culling and aligning.

Murl.Math.Box GetBoundingBox()

Returns
Murl.Math.Box The bounding box.