1#ifndef OE_SCENE_COMPONENT_NODE_CAMERA_H
2#define OE_SCENE_COMPONENT_NODE_CAMERA_H
5#include "../../manager.h"
6#include "../../camera.h"
8namespace oe::scene::component::node
21 _camera(node.getSceneManager()->getDefaultCamera())
27 template <CameraProjection ProjectionSettings>
30 _camera(projection_settings)
36 virtual void onUpdate(
const double,
const int8_t = 0)
override
The "eye of the scene".
Definition camera.h:33
Parent class of components that can be bound to a Node.
Definition node.h:15
Node & getNode() const noexcept
Get node bound to this component.
Transform getAbsoluteTransform() const
Get Node transform relative from world origin.
Component that provide a Camera where movements are based on those of the attached Node.
Definition camera.h:14
Camera(oe::scene::Node &node, const ProjectionSettings &projection_settings) noexcept
Create camera with a custom projection.
Definition camera.h:28
Camera(oe::scene::Node &node) noexcept
Copy Camera settings from the default scene manager camera.
Definition camera.h:19
scene::Camera & getCamera() noexcept
Get a reference to the camera bound to this component.
Definition camera.h:52
virtual void onUpdate(const double, const int8_t=0) override
Update camera transform when node transform is updated.
Definition camera.h:36