![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The ITextureState graph node interface.
Texture state nodes are used to activate and/or quickly switch between textures during scene graph traversal. For each distinct texture unit, as soon as a specific texture is activated at a given slot via a texture state node, it stays active during traversal until a different texture state node using the same slot is encountered.
Use the base interface's IStateSlot::SetSlot() method to set the actual slot index the referenced texture should be attached to. Use the base interface's IStateUnit::SetUnit() method to set the actual unit index the referenced texture should be attached to.
See sceneGraphStatesSlotsUnits for an overview of state handling during scene graph traversal.
See Graph::ITexture for defining a specific texture for rendering.
Murl.Graph.IStateSlot
Murl.Graph.IStateUnit
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 the constant Graph::ITextureNodeTarget container. This method returns a constant pointer to the node's Graph::ITextureNodeTarget container, which allows to query the texture this state node refers to.
Murl.Graph.IGenericNodeTarget.GraphITexture GetTextureNodeTarget()