RenderableComponent.ixx File
Component for associating a renderable object with an entity. More...
Included Headers
#include <cassert>
#include <memory>
#include <helios.engine.modules.rendering.model.components.ModelAabbComponent>
#include <helios.math.types>
#include <helios.rendering.Renderable>
#include <helios.engine.ecs.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | modules |
|
Domain-specific components and systems. More... | |
| namespace | rendering |
|
Rendering components for game entities. More... | |
| namespace | renderable |
|
Renderable entity components and systems. More... | |
| namespace | components |
Classes Index
| class | RenderableComponent |
|
Component that holds a shared pointer to a Renderable resource. More... | |
Description
Component for associating a renderable object with an entity.
File Listing
The file content with the documentation metadata removed is:
20export namespace helios::engine::modules::rendering::renderable::components {
30 class RenderableComponent {
40 helios::math::aabbf aabb_{};
77 explicit RenderableComponent(std::shared_ptr<helios::rendering::Renderable> renderable) :
78 renderable_(std::move(renderable)) {
93 RenderableComponent(const RenderableComponent& other) :
99 RenderableComponent& operator=(const RenderableComponent&) = default;
104 RenderableComponent(RenderableComponent&&) noexcept = default;
109 RenderableComponent& operator=(RenderableComponent&&) noexcept = default;
118 [[nodiscard]] std::shared_ptr<helios::rendering::Renderable> shareRenderable() const noexcept {
127 [[nodiscard]] const helios::rendering::Renderable& renderable() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.