blob: 5f0635cc17e7030eb9ab41c3b07dec2fe4824157 (
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
32
33
34
35
|
#pragma once
#include "floormat.hpp"
#include <Magnum/Math/Vector2.h>
struct SDL_Window;
namespace floormat {
struct floormat_app;
struct tile_shader;
struct world;
struct floormat_main
{
floormat_main() noexcept;
virtual ~floormat_main() noexcept;
fm_DECLARE_DELETED_COPY_ASSIGNMENT(floormat_main);
fm_DECLARE_DEPRECATED_MOVE_ASSIGNMENT(floormat_main);
virtual void quit(int status) = 0;
virtual Magnum::Math::Vector2<int> window_size() const noexcept = 0;
virtual float smoothed_dt() const noexcept = 0;
virtual tile_shader& shader() noexcept = 0;
virtual void register_debug_callback() noexcept = 0;
virtual world& world() noexcept = 0;
virtual SDL_Window* window() noexcept = 0;
static floormat_main* create(floormat_app& app, const fm_options& options);
};
} // namespace floormat
|