Skip to content

Commit

Permalink
presenter: Let camera look at map center on startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Jul 29, 2024
1 parent f841c29 commit 6c9ded3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libopenage/presenter/presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void Presenter::init_graphics(bool debug) {

// Camera
this->camera = std::make_shared<renderer::camera::Camera>(this->renderer, this->window->get_size());
this->camera->look_at_coord(coord::scene3{10.0, 10.0, 0}); // Center camera on the map
this->window->add_resize_callback([this](size_t w, size_t h, double /*scale*/) {
this->camera->resize(w, h);
});
Expand Down

0 comments on commit 6c9ded3

Please sign in to comment.