Remove unused variable
This commit is contained in:
parent
4967b33479
commit
679cf64a30
@ -43,8 +43,8 @@ struct Camera {
|
|||||||
// Point in world coordinates where the camera is located
|
// Point in world coordinates where the camera is located
|
||||||
glm::vec3 position;
|
glm::vec3 position;
|
||||||
|
|
||||||
// view_direction is an actual direction vector. When used with glm::lookAt, we add it to the position
|
// view_direction is an actual direction vector. When used with glm::lookAt, it gets added to the
|
||||||
// to calculate the target the camera is looking at
|
// position to calculate the target point the camera is looking at
|
||||||
glm::vec3 view_direction;
|
glm::vec3 view_direction;
|
||||||
|
|
||||||
// The up vector in world coordinates
|
// The up vector in world coordinates
|
||||||
@ -96,7 +96,6 @@ struct App {
|
|||||||
glm::mat4 projection_mat;
|
glm::mat4 projection_mat;
|
||||||
GLint u_projection_idx;
|
GLint u_projection_idx;
|
||||||
|
|
||||||
glm::vec2 current_mouse;
|
|
||||||
glm::vec2 prev_mouse;
|
glm::vec2 prev_mouse;
|
||||||
|
|
||||||
bool running;
|
bool running;
|
||||||
@ -191,7 +190,6 @@ int init(App &app) {
|
|||||||
0.1f,
|
0.1f,
|
||||||
20.0f
|
20.0f
|
||||||
);
|
);
|
||||||
app.current_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT);
|
|
||||||
app.prev_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT);
|
app.prev_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT);
|
||||||
|
|
||||||
return EXIT_CODE_SUCCESS;
|
return EXIT_CODE_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user