galaxy
1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
CameraController.hpp
Go to the documentation of this file.
1
7
8
#ifndef GALAXY_INPUT_CAMERACONTROLLER_HPP_
9
#define GALAXY_INPUT_CAMERACONTROLLER_HPP_
10
11
#include "galaxy/events/KeyPress.hpp"
12
#include "galaxy/events/MouseWheel.hpp"
13
#include "galaxy/graphics/Camera.hpp"
14
15
namespace
galaxy
16
{
17
namespace
input
18
{
22
class
CameraController
final
23
{
24
public
:
30
CameraController
(graphics::Camera& camera);
31
35
~CameraController
();
36
42
void
on_key_press
(events::KeyPress& e);
43
49
void
on_mouse_wheel
(events::MouseWheel& e);
50
51
private
:
55
CameraController
();
56
57
public
:
61
std::reference_wrapper<graphics::Camera>
m_camera
;
62
};
63
}
// namespace input
64
}
// namespace galaxy
65
66
#endif
galaxy::input::CameraController
Orthographic camera input wrapper.
Definition
CameraController.hpp:23
galaxy::input::CameraController::m_camera
std::reference_wrapper< graphics::Camera > m_camera
Camera object being manipulated.
Definition
CameraController.hpp:61
galaxy::input::CameraController::on_key_press
void on_key_press(events::KeyPress &e)
Event processing method for input events.
Definition
CameraController.cpp:27
galaxy::input::CameraController::~CameraController
~CameraController()
Destructor.
Definition
CameraController.cpp:23
galaxy::input::CameraController::on_mouse_wheel
void on_mouse_wheel(events::MouseWheel &e)
Event processing method for scroll events.
Definition
CameraController.cpp:87
galaxy::input::CameraController::CameraController
CameraController()
Deleted constructor.
galaxy
Timer.hpp galaxy.
Definition
Async.hpp:17
galaxy
src
galaxy
input
CameraController.hpp
Generated on Sat Mar 1 2025 14:49:36 for galaxy by
1.12.0