Skip to main content

ViewportComponent.ixx File

Associates a scene and camera with a viewport handle. More...

Included Headers

#include <helios.engine.rendering.viewport.types> #include <helios.engine.scene.types> #include <helios.ecs.types.EntityHandle>

Namespaces Index

namespacehelios
namespaceengine
namespacescene
namespacecomponents

Classes Index

classViewportComponent<THandle>

Component that groups viewport, scene, and camera bindings. More...

Description

Associates a scene and camera with a viewport handle.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7
8export module helios.engine.scene.components.ViewportComponent;
9
10import helios.ecs.types.EntityHandle;
11import helios.engine.scene.types;
12import helios.engine.rendering.viewport.types;
13
14using namespace helios::ecs::types;
15using namespace helios::engine::scene::types;
18
24 template<typename THandle>
26
27 SceneHandle sceneHandle_{};
28
29 ViewportHandle viewportHandle_{};
30
31 THandle cameraEntityHandle_{};
32
33 public:
34
44 : viewportHandle_(viewportHandle), sceneHandle_(sceneHandle), cameraEntityHandle_(cameraEntityHandle) {};
45
48 return sceneHandle_;
49 }
50
53 return viewportHandle_;
54 }
55
58 return cameraEntityHandle_;
59 }
60
61
62 };
63
64}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.