Skip to main content

MaterialOverrideComponent Class Template

Component that stores a replacement material handle. More...

Declaration

template <typename THandle> class helios::engine::rendering::common::components::MaterialOverrideComponent<THandle> { ... }

Public Constructors Index

template <typename THandle>
MaterialOverrideComponent (const MaterialHandle materialHandle)

Constructs the component from a material handle. More...

Public Member Functions Index

template <typename THandle>
MaterialHandlematerialHandle () const noexcept

Returns the stored override material handle. More...

Private Member Attributes Index

template <typename THandle>
MaterialHandlematerialHandle_ {}

Description

Component that stores a replacement material handle.

Template Parameters
THandle

Owning entity handle type.

Definition at line 21 of file MaterialOverrideComponent.ixx.

Public Constructors

MaterialOverrideComponent()

template <typename THandle>
helios::engine::rendering::common::components::MaterialOverrideComponent< THandle >::MaterialOverrideComponent (const MaterialHandle materialHandle)
inline explicit

Constructs the component from a material handle.

Parameters
materialHandle

Override material handle.

Definition at line 34 of file MaterialOverrideComponent.ixx.

35 : materialHandle_(materialHandle) {}

Public Member Functions

materialHandle()

template <typename THandle>
MaterialHandle helios::engine::rendering::common::components::MaterialOverrideComponent< THandle >::materialHandle ()
inline noexcept

Returns the stored override material handle.

Definition at line 38 of file MaterialOverrideComponent.ixx.

39 return materialHandle_;
40 }

Private Member Attributes

materialHandle_

template <typename THandle>
MaterialHandle helios::engine::rendering::common::components::MaterialOverrideComponent< THandle >::materialHandle_ {}

Definition at line 24 of file MaterialOverrideComponent.ixx.

24 MaterialHandle materialHandle_{};

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.