diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 17:48:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 18:24:55 +0100 |
commit | b84cfa301e2fb131275711c67a2e91e3cda65c4e (patch) | |
tree | d060791ca783f6b9c4da5959535ec0eb85dd73cf /loader/loader.hpp | |
parent | eea6fad65d5c9fecfb47c4a1c516c253cee85fd2 (diff) |
loader: fix static initializer mess
Diffstat (limited to 'loader/loader.hpp')
-rw-r--r-- | loader/loader.hpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/loader/loader.hpp b/loader/loader.hpp index 32158675..3320b839 100644 --- a/loader/loader.hpp +++ b/loader/loader.hpp @@ -1,12 +1,10 @@ #pragma once - #include <memory> -#include <Corrade/Containers/ArrayView.h> -#include <Corrade/Containers/StringView.h> -#include <Magnum/Trade/ImageData.h> -#define FM_IMAGE_PATH "share/floormat/images/" -#define FM_ANIM_PATH "share/floormat/anim/" +namespace Corrade::Containers { template<typename T> class ArrayView; class String; } +namespace Corrade::Containers { template<typename T> class BasicStringView; using StringView = BasicStringView<const char>; } +namespace Magnum::Math { template<class T> class Vector2; } +namespace Magnum { using Vector2ub = Math::Vector2<unsigned char>; } namespace floormat { @@ -27,6 +25,9 @@ struct loader_ virtual ~loader_(); + static const StringView IMAGE_PATH; + static const StringView ANIM_PATH; + protected: loader_(); }; |