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 | ab9c2a73efb61a4ee553d728bbdcb84dc6ed91e6 (patch) | |
| tree | 76f5233661bfc7efc99d96dec7659b83e463fb59 /src/core/camera.cpp | |
| parent | 5c8a5cd96ec369cdb5f61a31b4004c1f412cec09 (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..589d8af 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) -> 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, 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); |
