diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/app.cpp | 5 | ||||
-rw-r--r-- | main/app.hpp | 3 | ||||
-rw-r--r-- | main/precomp.hpp | 1 | ||||
-rw-r--r-- | main/update.cpp | 6 |
4 files changed, 7 insertions, 8 deletions
diff --git a/main/app.cpp b/main/app.cpp index 523bb49e..d6593227 100644 --- a/main/app.cpp +++ b/main/app.cpp @@ -5,7 +5,6 @@ #include <Corrade/Utility/Arguments.h> #include <Corrade/Utility/DebugStl.h> #include <Magnum/GL/DefaultFramebuffer.h> -#include <Magnum/GL/TextureFormat.h> #ifdef FM_MSAA #include <Magnum/GL/RenderbufferFormat.h> @@ -32,13 +31,13 @@ void app::usage(const Utility::Arguments& args) } app::app(const Arguments& arguments, app_settings opts): - Platform::Application{ + Platform::Sdl2Application{ arguments, Configuration{} .setTitle("Test") .setSize({1024, 768}, dpi_policy::Physical) .setWindowFlags(Configuration::WindowFlag::Resizable), - GLConfiguration{}, + GLConfiguration{} }, _settings{opts} { diff --git a/main/app.hpp b/main/app.hpp index bf0330ce..8970aa15 100644 --- a/main/app.hpp +++ b/main/app.hpp @@ -12,7 +12,6 @@ #include "editor.hpp" #include "world.hpp" #include <Magnum/Timeline.h> -#include <Magnum/Platform/Sdl2Application.h> #include <Magnum/GL/DebugOutput.h> #include <Magnum/Platform/Sdl2Application.h> #include <Magnum/ImGuiIntegration/Context.h> @@ -27,7 +26,7 @@ namespace floormat { -struct app final : private Platform::Application +struct app final : private Platform::Sdl2Application { static int run_from_argv(int argc, char** argv); virtual ~app(); diff --git a/main/precomp.hpp b/main/precomp.hpp index 1dc47507..0727f83d 100644 --- a/main/precomp.hpp +++ b/main/precomp.hpp @@ -14,6 +14,7 @@ #include <Magnum/GL/DefaultFramebuffer.h> #include <Magnum/GL/Framebuffer.h> #include <Magnum/GL/MultisampleTexture.h> +#include <Magnum/GL/Renderbuffer.h> #include <Magnum/GL/TextureFormat.h> #include <Magnum/ImGuiIntegration/Context.h> #include <Magnum/Platform/Sdl2Application.h> diff --git a/main/update.cpp b/main/update.cpp index 172b2ebd..ebd1881b 100644 --- a/main/update.cpp +++ b/main/update.cpp @@ -2,20 +2,20 @@ namespace floormat { -//#define TEST_NO_BINDINGS +//#define FM_NO_BINDINGS void app::make_test_chunk(chunk& c) { constexpr auto N = TILE_MAX_DIM; for (auto [x, k, pt] : c) { -#ifdef TEST_NO_BINDINGS +#if defined FM_NO_BINDINGS const auto& atlas = floor1; #else const auto& atlas = pt.x != pt.y && (pt.x == N/2 || pt.y == N/2) ? floor2 : floor1; #endif x.ground_image = { atlas, k % atlas->num_tiles() }; } -#ifdef TEST_NO_BINDINGS +#ifdef FM_NO_BINDINGS const auto& wall1 = floor1, wall2 = floor1; #endif constexpr auto K = N/2; |