Container for material renderers. More...
#include <kanzi/core.ui/graphics3d/draw_objects_with_material_render_pass.hpp>
Public Member Functions | |
| MaterialRendererContainer () | |
| Empty constructor. More... | |
| MaterialRendererContainer (MaterialSharedPtr material, Node3D &node, unsigned int counter) | |
| Constructor. More... | |
| MaterialRendererContainer (KZ_RV_REF(MaterialRendererContainer) other) | |
| Move constructor. More... | |
| MaterialRenderer * | getMaterialRenderer () |
| Gets the material renderer. More... | |
| bool | counterMatches (unsigned int counter) const |
| Test if the counter matches given value. More... | |
| void | updateCounter (unsigned int counter) |
| Update the counter to match given external number. More... | |
| MaterialRendererContainer & | operator= (KZ_RV_REF(MaterialRendererContainer) other) |
| Move operator. More... | |
Container for material renderers.
|
inlineexplicit |
Empty constructor.
|
explicit |
Constructor.
| material | The material to attach. |
| node | 3D node to which to attach the material. |
| counter | Current counter. |
|
inline |
Move constructor.
| other | Source object. |
|
inline |
Gets the material renderer.
Used internally to access the material renderer corresponding to a node.
|
inline |
Test if the counter matches given value.
Used internally to determine if the material renderer is still required.
| counter | The counter against which to check. |
|
inline |
Update the counter to match given external number.
Used internally to update the counter while rendering.
| counter | The new counter value. |
|
inline |
Move operator.
| other | Source object. |