Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Component that provide a Camera where movements are based on those of the attached Node. More...
#include <OxygenEngine/scene/component/node/camera.h>
Public Member Functions | |
Camera (oe::scene::Node &node) noexcept | |
Copy Camera settings from the default scene manager camera. | |
template<CameraProjection ProjectionSettings> | |
Camera (oe::scene::Node &node, const ProjectionSettings &projection_settings) noexcept | |
Create camera with a custom projection. | |
virtual void | onUpdate (const double, const int8_t=0) override |
Update camera transform when node transform is updated. | |
scene::Camera & | getCamera () noexcept |
Get a reference to the camera bound to this component. | |
![]() | |
NodeComponent (Node &entity) | |
Constructor. | |
Node & | getNode () const noexcept |
Get node bound to this component. | |
Manager & | getSceneManager () const noexcept |
Get scene manager of the node bound to this component. | |
![]() | |
const std::string & | getName () const |
Additional Inherited Members | |
![]() | |
bool | is_active = true |
Toggle to check if the Component is active, actual meaning heavily depends of the component type. | |
![]() | |
EntityComponent (Node &entity) | |
![]() | |
Node & | _entity |
|
inlineoverridevirtual |
Update camera transform when node transform is updated.
Reimplemented from oe::component::Component.