From 1d51ae47889c1fd46af63a298b7d7ffd1e68ee54 Mon Sep 17 00:00:00 2001 From: talha Date: Tue, 22 Oct 2024 00:13:34 +0500 Subject: Disabled the funky camera movement poc for now --- source/main.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 16ef163..f692a54 100755 --- a/source/main.cpp +++ b/source/main.cpp @@ -552,16 +552,16 @@ Vec2 get_move_dir(Controller c) { return dir; } -void update_camera(GLRenderer *renderer) { - if (renderer->cam_update == true) { - renderer->cam_view = camera_create4m( - renderer->cam_pos, - add3v(renderer->cam_pos, renderer->cam_look), - renderer->preset_up_dir - ); - renderer->cam_update = false; - } -} +//void update_camera(GLRenderer *renderer) { +// if (renderer->cam_update == true) { +// renderer->cam_view = camera_create4m( +// renderer->cam_pos, +// add3v(renderer->cam_pos, renderer->cam_look), +// renderer->preset_up_dir +// ); +// renderer->cam_update = false; +// } +//} int main(int argc, char* argv[]) { @@ -998,8 +998,8 @@ int main(int argc, char* argv[]) if (!is_collide_x) { state.player.position.x = next_player_position.x; - renderer->cam_pos.x += pd_1.x; - renderer->cam_update = true; + //renderer->cam_pos.x += pd_1.x; + //renderer->cam_update = true; } if (!is_collide_y) { state.player.position.y = next_player_position.y; @@ -1009,7 +1009,7 @@ int main(int argc, char* argv[]) collidex = is_collide_x; collidey = is_collide_y; - update_camera(renderer); + //update_camera(renderer); // output glClearColor(0.8f, 0.5f, 0.7f, 1.0f); -- cgit v1.2.3