aboutsummaryrefslogtreecommitdiff
path: root/src/core/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/camera.cpp')
-rw-r--r--src/core/camera.cpp5
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);