From 679cf64a30663ad0347d6edff0b220ae2e43fea3 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 28 Sep 2024 21:33:53 +0100 Subject: [PATCH] Remove unused variable --- src/main.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cc b/src/main.cc index c321091..00e6ac5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -43,8 +43,8 @@ struct Camera { // Point in world coordinates where the camera is located glm::vec3 position; - // view_direction is an actual direction vector. When used with glm::lookAt, we add it to the position - // to calculate the target the camera is looking at + // view_direction is an actual direction vector. When used with glm::lookAt, it gets added to the + // position to calculate the target point the camera is looking at glm::vec3 view_direction; // The up vector in world coordinates @@ -96,7 +96,6 @@ struct App { glm::mat4 projection_mat; GLint u_projection_idx; - glm::vec2 current_mouse; glm::vec2 prev_mouse; bool running; @@ -191,7 +190,6 @@ int init(App &app) { 0.1f, 20.0f ); - app.current_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT); app.prev_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT); return EXIT_CODE_SUCCESS;