summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-23 20:21:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-23 20:21:11 +0200
commit4341fb36784a9da7b519d81d78e8df983816d791 (patch)
tree4c88f9de9780856e11c4b4322e9c88f83b623a5c
parentee869706042fefcb942b7283f68a5de3ecb011f8 (diff)
a
-rw-r--r--main/floormat-main-impl.cpp10
-rw-r--r--shaders/tile-shader.hpp1
2 files changed, 11 insertions, 0 deletions
diff --git a/main/floormat-main-impl.cpp b/main/floormat-main-impl.cpp
index 61dc40b4..0945daf4 100644
--- a/main/floormat-main-impl.cpp
+++ b/main/floormat-main-impl.cpp
@@ -207,6 +207,16 @@ void main_impl::quit(int status)
Platform::Sdl2Application::exit(status);
}
+struct world& main_impl::world() noexcept
+{
+ return _world;
+}
+
+SDL_Window* main_impl::window() noexcept
+{
+ return Sdl2Application::window();
+}
+
Vector2i main_impl::window_size() const noexcept { return windowSize(); }
tile_shader& main_impl::shader() noexcept { return _shader; }
diff --git a/shaders/tile-shader.hpp b/shaders/tile-shader.hpp
index fc796c3f..1de9d037 100644
--- a/shaders/tile-shader.hpp
+++ b/shaders/tile-shader.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include "compat/defs.hpp"
#include <Magnum/GL/AbstractShaderProgram.h>
#include <Magnum/Math/Vector2.h>
#include <Magnum/Math/Vector3.h>