Skip to content
Snippets Groups Projects
Commit 6cc0b228 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

remove window from freecam arguments

parent 0fac7e3c
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ constexpr float PAN_SPEED = 0.05f;
constexpr glm::mat4 MAT_IDENTITY(1.0f);
void process_freecam(fggl::gfx::Window& window, fggl::ecs::ECS& ecs, InputManager input, fggl::ecs::entity_t cam) {
void process_freecam(fggl::ecs::ECS& ecs, InputManager input, fggl::ecs::entity_t cam) {
float rotationValue = 0.0f;
glm::vec3 translation(0.0f);
......@@ -179,7 +179,7 @@ void process_camera(fggl::gfx::Window& window, fggl::ecs::ECS& ecs, InputManager
if ( cam_mode == cam_arcball || input->mouse.button( fggl::input::MouseButton::MIDDLE ) ) {
process_arcball(window, ecs, input, cam);
} else if ( cam_mode == cam_free ) {
process_freecam(window, ecs, input, cam);
process_freecam(ecs, input, cam);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment