diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 19:07:35 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 19:07:35 +0200 |
| commit | 0158611e08cebd24518b1439904905d5dacbdf35 (patch) | |
| tree | e2f16d43952fed5c30532c1f4f1fb04d4ca581d2 /src/core/camera.cpp | |
| parent | a34c49f103c8950a57687ea3d866c244d95b4414 (diff) | |
[chore]: -Wall -Wextra -Werror -pedantic
Diffstat (limited to 'src/core/camera.cpp')
| -rw-r--r-- | src/core/camera.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/camera.cpp b/src/core/camera.cpp index 35b7a2f..ab12782 100644 --- a/src/core/camera.cpp +++ b/src/core/camera.cpp @@ -33,7 +33,6 @@ namespace Donut { float pitch = glm::radians(m_rotation.x); float yaw = glm::radians(m_rotation.y); - float roll = glm::radians(m_rotation.z); glm::vec3 direction; direction.x = cos(yaw) * cos(pitch); @@ -199,7 +198,7 @@ namespace Donut update_orbital(); } - auto Camera::process_orbital_mouse_button(int button, int action, int mods) -> void + auto Camera::process_orbital_mouse_button(int button, int action, int /*mods*/) -> void { if (button == GLFW_MOUSE_BUTTON_LEFT) { @@ -216,7 +215,7 @@ namespace Donut } } - auto Camera::process_orbital_scroll(double x_offset, double y_offset) -> void + auto Camera::process_orbital_scroll(double /*x_offset*/, double y_offset) -> void { m_orbital_radius -= y_offset * m_zoom_speed; m_orbital_radius = glm::clamp(m_orbital_radius, m_orbital_min_radius, m_orbital_max_radius); |
