blob: 9dae4b11a6f59d5fff2b81b6eecfab97594689c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include <memory>
#include <Corrade/Containers/StringView.h>
#include <Magnum/Trade/ImageData.h>
#define IMAGE_PATH "share/floormat/images/"
namespace floormat {
struct tile_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;
static void destroy();
loader_(const loader_&) = delete;
loader_& operator=(const loader_&) = delete;
virtual ~loader_();
protected:
loader_();
};
extern loader_& loader; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
} // namespace floormat
|