diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-24 09:32:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-24 09:32:13 +0200 |
commit | cecd124c0c043ef261256fb9e3f1108cde1265c1 (patch) | |
tree | 7fcba9f0904efa254d260feb1fc4eef444dd5339 /editor/app.hpp | |
parent | 203701d221b5f982abf44379ce738f76e0db027a (diff) |
a
Diffstat (limited to 'editor/app.hpp')
-rw-r--r-- | editor/app.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/app.hpp b/editor/app.hpp index f3c95d6f..ff5326ac 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -36,6 +36,7 @@ struct app final : floormat_app fm_DECLARE_DEPRECATED_MOVE_ASSIGNMENT(app); void update(float dt) override; + void maybe_init_chunk(const chunk_coords& pos, chunk& c) override; void draw_msaa() override; void draw() override; @@ -52,6 +53,10 @@ struct app final : floormat_app void on_mouse_leave() noexcept override; void on_mouse_enter() noexcept override; + int exec(); + + static int run_from_argv(int argv, const char* const* argc); + private: using tile_atlas_ = std::shared_ptr<tile_atlas>; @@ -68,7 +73,7 @@ private: void do_mouse_release(int button); void do_mouse_move(global_coords pos); - void do_camera(double dt); + void do_camera(float dt); void reset_camera_offset(); void recalc_cursor_tile(); void init_imgui(Vector2i size); |