![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The ITextStyleImage graph node interface.
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()
Get a constant Graph::IAtlasResourceTarget container. This method returns a constant pointer to a Graph::IAtlasResourceTarget container, which allows to query the atlas resources referenced by a node implementing this interface.
Murl.Graph.IGenericResourceTarget.ResourceIAtlas GetAtlasResourceTarget()
Set the current atlas rectangle by name. If the given name is empty, the rectangle is explicitly set via a given index (see SetIndex()). This method fails if no atlas resource is set, or the given name is not found within the atlas resource.
Boolean SetRectangleName(String rectangleName)
rectangleName | The rectangle name. |
Get the current rectangle's name. This method returns an empty string when no atlas resource is defined or the currently active rectangle is unnamed.
String GetRectangleName()
Set the current rectangle index.
Boolean SetRectangleIndex(Integer index)
index | The signed index to set. |
Get the current rectangle index.
Integer GetRectangleIndex()
Set th scaling factor.
Boolean SetScaleFactor(Number s)
s | The scale factor. |
Get the scaling factor.
Number GetScaleFactor()
Set the material slot used for rendering.
Boolean SetMaterialSlot(Integer slot)
slot | The material slot. |
Get the material slot used for rendering.
Integer GetMaterialSlot()
Set the texture slot used for rendering.
Boolean SetTextureSlot(Integer unit, Integer slot)
unit | The texture unit for which to set the slot. |
slot | The texture slot. |
Get the texture slot used for rendering.
Integer GetTextureSlot(Integer unit)
unit | The texture unit for which to query the slot. |
Get the width of the currently displayed atlas rectangle.
Number GetFrameSizeX()
Get the height of the currently displayed atlas rectangle.
Number GetFrameSizeY()