The ITextureState graph node interface. More...
#include "murl_graph_i_texture_state.h"
Public Member Functions | |
virtual INode * | GetNodeInterface ()=0 |
Get the mutable Graph::INode interface. More... | |
virtual const INode * | GetNodeInterface () const =0 |
Get the constant Graph::INode interface. More... | |
virtual ITextureNodeTarget * | GetTextureNodeTarget ()=0 |
Get the mutable Graph::ITextureNodeTarget container. More... | |
virtual const ITextureNodeTarget * | GetTextureNodeTarget () const =0 |
Get the constant Graph::ITextureNodeTarget container. More... | |
Public Member Functions inherited from Murl::Graph::IStateSlot | |
virtual Bool | SetSlot (SInt32 slot)=0 |
Set the slot index to use. More... | |
virtual SInt32 | GetSlot () const =0 |
Get the slot index to use. More... | |
Public Member Functions inherited from Murl::Graph::IStateUnit | |
virtual Bool | SetUnit (UInt32 unit)=0 |
Set the unit index to use. More... | |
virtual UInt32 | GetUnit () const =0 |
Get the unit index to use. More... | |
Detailed Description
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 Output-States, Slots und Units for an overview of state handling during scene graph traversal.
See Graph::ITexture for defining a specific texture for rendering.
Member Function Documentation
◆ GetNodeInterface() [1/2]
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
- Returns
- The mutable Graph::INode interface, or null if not available
◆ GetNodeInterface() [2/2]
|
pure virtual |
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.
- Returns
- The constant Graph::INode interface, or null if not available
◆ GetTextureNodeTarget() [1/2]
|
pure virtual |
Get the mutable Graph::ITextureNodeTarget container.
This method returns a mutable pointer to the node's Graph::ITextureNodeTarget container, which allows to set or query the texture this state node refers to.
- Returns
- The mutable Graph::ITextureNodeTarget container, or null if not available.
◆ GetTextureNodeTarget() [2/2]
|
pure virtual |
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.
- Returns
- The mutable Graph::ITextureNodeTarget container, or null if not available.
The documentation for this interface was generated from the following file:
- murl_graph_i_texture_state.h