summaryrefslogtreecommitdiffhomepage
path: root/src/loader.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-06 19:20:03 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-06 19:20:11 +0100
commitb82ebb0339a15cc05e26f9cdca646022e6b71ef4 (patch)
tree1e8bb27a0f5d0c84de4790465cf280d77c785a33 /src/loader.hpp
parentedc3ad8c86cb1a042134f82c738029004b116d86 (diff)
a
Diffstat (limited to 'src/loader.hpp')
-rw-r--r--src/loader.hpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/loader.hpp b/src/loader.hpp
index 9dae4b11..0aaaa42e 100644
--- a/src/loader.hpp
+++ b/src/loader.hpp
@@ -1,20 +1,25 @@
#pragma once
#include <memory>
+#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/StringView.h>
#include <Magnum/Trade/ImageData.h>
-#define IMAGE_PATH "share/floormat/images/"
+#define FM_IMAGE_PATH "share/floormat/images/"
+#define FM_ANIM_PATH "share/floormat/anim/"
namespace floormat {
struct tile_atlas;
+struct anim_atlas;
struct loader_
{
- virtual StringView shader(Containers::StringView filename) = 0;
- virtual Trade::ImageData2D tile_texture(Containers::StringView filename) = 0;
- virtual std::shared_ptr<struct tile_atlas> tile_atlas(Containers::StringView filename, Vector2ub size) = 0;
+ virtual StringView shader(StringView filename) = 0;
+ virtual Trade::ImageData2D tile_texture(StringView filename) = 0;
+ virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename, Vector2ub size) = 0;
+ virtual ArrayView<String> anim_atlas_list() = 0;
+ virtual std::shared_ptr<struct anim_atlas> anim_atlas(StringView name) = 0;
static void destroy();
loader_(const loader_&) = delete;