SceneNodeConfig.ixx File
Configuration for scene graph integration. More...
Included Headers
#include <cassert>
#include <memory>
#include <helios.math>
#include <helios.engine.modules.scene>
#include <helios.engine.modules.rendering>
#include <helios.scene>
#include <helios.engine.ecs.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | builder |
|
Fluent builder pattern for constructing GameObjects. More... | |
| namespace | gameObject |
|
Factory and prototype classes for GameObject construction. More... | |
| namespace | builders |
|
Domain-specific builders for configuring different aspects of GameObjects. More... | |
| namespace | configs |
|
Fine-grained configuration classes for component setup. More... | |
Classes Index
| class | SceneNodeConfig |
|
Fluent configuration for scene graph integration. More... | |
Description
Configuration for scene graph integration.
File Listing
The file content with the documentation metadata removed is:
19export namespace helios::engine::builder::gameObject::builders::configs {
27 class SceneNodeConfig {
32 helios::engine::ecs::GameObject gameObject_;
38 const auto* renderableComponent = gameObject_.get<helios::engine::modules::rendering::renderable::components::RenderableComponent>();
48 const auto* snc = gameObject_.get<helios::engine::modules::scene::components::SceneNodeComponent>();
65 explicit SceneNodeConfig(const helios::engine::ecs::GameObject gameObject) : gameObject_(gameObject) {}
78 const auto* renderableComponent = gameObject_.get<helios::engine::modules::rendering::renderable::components::RenderableComponent>();
80 auto renderable = renderableComponent->shareRenderable();
83 auto node_ptr = parent->addNode(std::move(node));
85 gameObject_.add<helios::engine::modules::scene::components::SceneNodeComponent>(node_ptr);
102 const auto* renderableComponent = gameObject_.get<helios::engine::modules::rendering::renderable::components::RenderableComponent>();
104 auto renderable = renderableComponent->shareRenderable();
108 auto* psn = parent.get<helios::engine::modules::scene::components::SceneNodeComponent>();
114 gameObject_.add<helios::engine::modules::scene::components::SceneNodeComponent>(node_ptr);
126 SceneNodeConfig& inherit(helios::math::TransformType transformType) {
129 gameObject_.get<helios::engine::modules::scene::components::SceneNodeComponent>()
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.