Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::component::node::Camera Class Reference

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:
[legend]
Collaboration diagram for oe::scene::component::node::Camera:
[legend]

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::CameragetCamera () noexcept
 Get a reference to the camera bound to this component.
 
- Public Member Functions inherited from oe::scene::NodeComponent
 NodeComponent (Node &entity)
 Constructor.
 
NodegetNode () const noexcept
 Get node bound to this component.
 
ManagergetSceneManager () 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
 

Detailed Description

Component that provide a Camera where movements are based on those of the attached Node.

Member Function Documentation

◆ onUpdate()

virtual void oe::scene::component::node::Camera::onUpdate ( const double  ,
const int8_t  = 0 
)
inlineoverridevirtual

Update camera transform when node transform is updated.

Reimplemented from oe::component::Component.


The documentation for this class was generated from the following file: