RenderPrototypeComponent.ixx File
Groups mesh, shader, and material handles into one render prototype. More...
Included Headers
#include <helios.engine.rendering.material>
#include <helios.engine.rendering.shader>
#include <helios.engine.rendering.mesh>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | rendering |
| namespace | common |
| namespace | components |
Classes Index
| class | RenderPrototypeComponent<TOwnerHandle> |
|
Component that stores the resource handles needed for rendering. More... | |
Description
Groups mesh, shader, and material handles into one render prototype.
File Listing
The file content with the documentation metadata removed is:
14using namespace helios::engine::rendering::mesh::types;
15using namespace helios::engine::rendering::shader::types;
16using namespace helios::engine::rendering::material::types;
17using namespace helios::engine::rendering::mesh;
18using namespace helios::engine::rendering::shader;
19using namespace helios::engine::rendering::material;
20export namespace helios::engine::rendering::common::components {
28 class RenderPrototypeComponent {
30 ShaderHandle shaderHandle_;
32 MaterialHandle materialHandle_;
34 MeshHandle meshHandle_;
45 explicit RenderPrototypeComponent(
46 const ShaderHandle shaderHandle,
47 const MaterialHandle materialHandle,
48 const MeshHandle meshHandle
50 : shaderHandle_(shaderHandle),
51 materialHandle_(materialHandle),
52 meshHandle_(meshHandle) {}
61 explicit RenderPrototypeComponent(
62 const ShaderEntity shader,
63 const MaterialEntity material,
64 const MeshEntity mesh
75 [[nodiscard]] MeshHandle meshHandle() const noexcept {
84 [[nodiscard]] ShaderHandle shaderHandle() const noexcept {
93 [[nodiscard]] MaterialHandle materialHandle() const noexcept {
102 void setMeshHandle(const MeshHandle meshHandle) noexcept {
103 meshHandle_ = meshHandle;
111 void setShaderHandle(const ShaderHandle shaderHandle) noexcept {
112 shaderHandle_ = shaderHandle;
120 void setMaterialHandle(const MaterialHandle materialHandle) noexcept {
121 materialHandle_ = materialHandle;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.