RamsesRenderGroupBindingElements¶
-
class
rlogic
::
RamsesRenderGroupBindingElements
¶ RamsesRenderGroupBindingElements is a helper class holding a set of references to elements to be provided when constructing rlogic::RamsesRenderGroupBinding. These elements are either ramses::MeshNode or ramses::RenderGroup. Note that ramses::RenderGroup can contain other (nested) ramses::RenderGroup objects, in such case the parent ramses::RenderGroup corresponds to the rlogic::RamsesRenderGroupBinding to be created and the nested ramses::RenderGroup is the element provided here.
Public Functions
-
RamsesRenderGroupBindingElements
() noexcept¶ Constructor of RamsesRenderGroupBindingElements.
-
bool
addElement
(const ramses::MeshNode &meshNode, std::string_view elementName = {})¶ Add ramses::MeshNode element to control its render order when provided to rlogic::RamsesRenderGroupBinding. Will fail if given element is already contained.
- Return
true
if successful,false
otherwise.- Parameters
meshNode
: ramses::MeshNode element to add to be exposed for render order control.elementName
: This name will be used to name the input property in the created rlogic::RamsesRenderGroupBinding. If none provided, name of the ramses::MeshNode will be used.
-
bool
addElement
(const ramses::RenderGroup &nestedRenderGroup, std::string_view elementName = {})¶ Add ramses::RenderGroup element to control its render order when provided to rlogic::RamsesRenderGroupBinding. Will fail if given element is already contained.
- Return
true
if successful,false
otherwise.- Parameters
nestedRenderGroup
: ramses::RenderGroup element to add to be exposed for render order control.elementName
: This name will be used to name the input property in the created rlogic::RamsesRenderGroupBinding. If none provided, name of the ramses::RenderGroup will be used.
Public Members
-
std::unique_ptr<internal::RamsesRenderGroupBindingElementsImpl>
m_impl
¶ Implementation detail of RamsesRenderGroupBindingElements.
-