|
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>
Inheritance diagram for oe::scene::component::node::Camera:
Collaboration diagram for oe::scene::component::node::Camera: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 std::chrono::nanoseconds, 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. | |
Public Member Functions inherited from oe::scene::NodeComponent | |
| 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. | |
Public Member Functions inherited from oe::component::EntityComponent< Node > | |
| const std::string & | getName () const |
Additional Inherited Members | |
Public Attributes inherited from oe::component::Component | |
| bool | is_active = true |
| Toggle to check if the Component is active, actual meaning heavily depends of the component type. | |
Protected Member Functions inherited from oe::component::EntityComponent< Node > | |
| EntityComponent (Node &entity) | |
Protected Attributes inherited from oe::component::EntityComponent< Node > | |
| Node & | _entity |
|
inlineoverridevirtual |
Update camera transform when node transform is updated.
Reimplemented from oe::component::Component.