From 0158611e08cebd24518b1439904905d5dacbdf35 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 24 Aug 2026 19:07:35 +0200 Subject: [chore]: -Wall -Wextra -Werror -pedantic --- src/core/camera.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core/camera.cpp') 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); -- cgit v1.3