RenderPrototypeComponent Class Template
Component that stores the resource handles needed for rendering. More...
Declaration
Public Constructors Index
template <typename TOwnerHandle> | |
| RenderPrototypeComponent (const ShaderHandle shaderHandle, const MaterialHandle materialHandle, const MeshHandle meshHandle) | |
|
Constructs the component from explicit resource handles. More... | |
template <typename TOwnerHandle> | |
| RenderPrototypeComponent (const ShaderEntity shader, const MaterialEntity material, const MeshEntity mesh) | |
|
Constructs the component from resource entities. More... | |
Public Member Functions Index
template <typename TOwnerHandle> | |
| MeshHandle | meshHandle () const noexcept |
|
Returns the mesh handle. More... | |
template <typename TOwnerHandle> | |
| ShaderHandle | shaderHandle () const noexcept |
|
Returns the shader handle. More... | |
template <typename TOwnerHandle> | |
| MaterialHandle | materialHandle () const noexcept |
|
Returns the material handle. More... | |
template <typename TOwnerHandle> | |
| void | setMeshHandle (const MeshHandle meshHandle) noexcept |
|
Sets the mesh handle. More... | |
template <typename TOwnerHandle> | |
| void | setShaderHandle (const ShaderHandle shaderHandle) noexcept |
|
Sets the shader handle. More... | |
template <typename TOwnerHandle> | |
| void | setMaterialHandle (const MaterialHandle materialHandle) noexcept |
|
Sets the material handle. More... | |
Private Member Attributes Index
template <typename TOwnerHandle> | |
| ShaderHandle | shaderHandle_ |
template <typename TOwnerHandle> | |
| MaterialHandle | materialHandle_ |
template <typename TOwnerHandle> | |
| MeshHandle | meshHandle_ |
Description
Component that stores the resource handles needed for rendering.
- Template Parameters
-
TOwnerHandle Owning entity handle type.
Definition at line 28 of file RenderPrototypeComponent.ixx.
Public Constructors
RenderPrototypeComponent()
| inline explicit |
Constructs the component from explicit resource handles.
- Parameters
-
shaderHandle Shader handle.
materialHandle Material handle.
meshHandle Mesh handle.
Definition at line 45 of file RenderPrototypeComponent.ixx.
RenderPrototypeComponent()
| inline explicit |
Constructs the component from resource entities.
- Parameters
-
shader Shader entity.
material Material entity.
mesh Mesh entity.
Definition at line 61 of file RenderPrototypeComponent.ixx.
Public Member Functions
materialHandle()
| inline noexcept |
Returns the material handle.
- Returns
Material resource handle.
Definition at line 93 of file RenderPrototypeComponent.ixx.
Referenced by helios::engine::rendering::common::components::RenderPrototypeComponent< TOwnerHandle >::setMaterialHandle.
meshHandle()
| inline noexcept |
Returns the mesh handle.
- Returns
Mesh resource handle.
Definition at line 75 of file RenderPrototypeComponent.ixx.
Referenced by helios::engine::rendering::common::components::RenderPrototypeComponent< TOwnerHandle >::setMeshHandle.
setMaterialHandle()
| inline noexcept |
Sets the material handle.
- Parameters
-
materialHandle Material resource handle.
Definition at line 120 of file RenderPrototypeComponent.ixx.
setMeshHandle()
| inline noexcept |
Sets the mesh handle.
- Parameters
-
meshHandle Mesh resource handle.
Definition at line 102 of file RenderPrototypeComponent.ixx.
Reference helios::engine::rendering::common::components::RenderPrototypeComponent< TOwnerHandle >::meshHandle.
setShaderHandle()
| inline noexcept |
Sets the shader handle.
- Parameters
-
shaderHandle Shader resource handle.
Definition at line 111 of file RenderPrototypeComponent.ixx.
shaderHandle()
| inline noexcept |
Returns the shader handle.
- Returns
Shader resource handle.
Definition at line 84 of file RenderPrototypeComponent.ixx.
Referenced by helios::engine::rendering::common::components::RenderPrototypeComponent< TOwnerHandle >::setShaderHandle.
Private Member Attributes
materialHandle_
|
Definition at line 32 of file RenderPrototypeComponent.ixx.
meshHandle_
|
Definition at line 34 of file RenderPrototypeComponent.ixx.
shaderHandle_
|
Definition at line 30 of file RenderPrototypeComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.