From 4341fb36784a9da7b519d81d78e8df983816d791 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 23 Oct 2022 20:21:11 +0200 Subject: a --- main/floormat-main-impl.cpp | 10 ++++++++++ shaders/tile-shader.hpp | 1 + 2 files changed, 11 insertions(+) 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 #include #include -- cgit v1.2.3