kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer Class Reference

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...
 
MaterialRenderergetMaterialRenderer ()
 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...
 
MaterialRendererContaineroperator= (KZ_RV_REF(MaterialRendererContainer) other)
 Move operator. More...
 

Detailed Description

Container for material renderers.

Constructor & Destructor Documentation

kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::MaterialRendererContainer ( )
inlineexplicit

Empty constructor.

kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::MaterialRendererContainer ( MaterialSharedPtr  material,
Node3D node,
unsigned int  counter 
)
explicit

Constructor.

Parameters
materialThe material to attach.
node3D node to which to attach the material.
counterCurrent counter.
kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::MaterialRendererContainer ( KZ_RV_REF(MaterialRendererContainer other)
inline

Move constructor.

Parameters
otherSource object.

Member Function Documentation

MaterialRenderer* kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::getMaterialRenderer ( )
inline

Gets the material renderer.

Used internally to access the material renderer corresponding to a node.

Returns
Pointer to material renderer.
bool kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::counterMatches ( unsigned int  counter) const
inline

Test if the counter matches given value.

Used internally to determine if the material renderer is still required.

Parameters
counterThe counter against which to check.
Returns
True when the counter matches, otherwise false.
void kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::updateCounter ( unsigned int  counter)
inline

Update the counter to match given external number.

Used internally to update the counter while rendering.

Parameters
counterThe new counter value.
MaterialRendererContainer& kanzi::DrawObjectsWithMaterialRenderPass::MaterialRendererContainer::operator= ( KZ_RV_REF(MaterialRendererContainer other)
inline

Move operator.

Parameters
otherSource object.

The documentation for this class was generated from the following file: