Remove unused variable

This commit is contained in:
Abdelrahman Said 2024-09-28 21:33:53 +01:00
parent 4967b33479
commit 679cf64a30

View File

@ -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;