summaryrefslogtreecommitdiff
path: root/source/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/main.cpp')
-rwxr-xr-xsource/main.cpp26
1 files 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);