diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 22:38:54 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 22:38:54 +0200 |
commit | 0efe01d0e7286e9eb60c4739ae748c0cb6e7a51f (patch) | |
tree | 09121d7fcbb17151ea10331bfb3de0474fe6a661 /editor/app.cpp | |
parent | b6a067678ab9e225647b256595d54dde2ce6f2f5 (diff) |
a
Diffstat (limited to 'editor/app.cpp')
-rw-r--r-- | editor/app.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index e69de29b..dd4433f9 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -0,0 +1,21 @@ +#include "app.hpp" +#include "main/floormat-main.hpp" +#include "src/loader.hpp" + +namespace floormat { + +app::app() : + _floor1{loader.tile_atlas("floor-tiles", {44, 4})}, + _floor2{loader.tile_atlas("metal1", {2, 2})}, + _wall1{loader.tile_atlas("wood2", {1, 1})}, + _wall2{loader.tile_atlas("wood1", {1, 1})}, + _fmain{floormat_main::create(*this, {})} +{ +} + +app::~app() +{ + loader_::destroy(); +} + +} // namespace floormat |