The ILayerState graph node interface. More...
#include "murl_graph_i_layer_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 Bool | SetLayerIndex (UInt32 layerIndex)=0 |
Set the current layer index. More... | |
virtual UInt32 | GetLayerIndex () const =0 |
Get the current layer index. More... | |
Detailed Description
The ILayerState graph node interface.
To allow finer control over the order in which geometry is rendered within an active Graph::ICamera, it is possible to select an individual render layer by using a Graph::ILayerState node with a given index. Layers with lower indices (default 0) are rendered first, i.e. their objects will be overdrawn by objects contained in layers with higher indices.
In any case, if one layer contains both solid and (semi-)transparent objects, the solid ones are always rendered before the transparent ones. If this order is to be reversed, all solid objects must be put to a layer with an index higher than the current one.
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
◆ SetLayerIndex()
Set the current layer index.
- Parameters
-
layerIndex The current layer index to set.
- Returns
- true if successful.
◆ GetLayerIndex()
|
pure virtual |
Get the current layer index.
- Returns
- The current layer index.
The documentation for this interface was generated from the following file:
- murl_graph_i_layer_state.h