summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-14 15:37:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-14 15:37:44 +0100
commitf3dccbda61f4880d1ad8be4e721a3e0d14023c5e (patch)
tree9cbde9a63433f062c530f3862900526f454a9f96
parente25f9a8b813a5de01d3c748a1710ffdc6f9935ec (diff)
compat/prelude: include Magnum color literals
-rw-r--r--compat/prelude.hpp2
-rw-r--r--main/draw.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/compat/prelude.hpp b/compat/prelude.hpp
index ccc71f06..f64523c4 100644
--- a/compat/prelude.hpp
+++ b/compat/prelude.hpp
@@ -4,11 +4,13 @@ namespace Corrade::Containers::Literals {}
namespace Corrade::Containers {}
namespace Corrade::Utility::Path {}
namespace Corrade::Utility { class Debug; class Error; }
+namespace Magnum::Math::Literals {}
namespace Magnum {}
namespace floormat {
using namespace ::Magnum;
using namespace ::Corrade::Containers;
using namespace ::Corrade::Containers::Literals;
+ using namespace ::Magnum::Math::Literals;
using Debug [[maybe_unused]] = ::Corrade::Utility::Debug;
using Error [[maybe_unused]] = ::Corrade::Utility::Error;
namespace Path = Corrade::Utility::Path; // NOLINT(misc-unused-alias-decls)
diff --git a/main/draw.cpp b/main/draw.cpp
index abd65f7d..45113958 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -164,7 +164,6 @@ void main_impl::drawEvent()
_shader.set_tint({1, 1, 1, 1});
{
- using namespace Math::Literals;
const auto clear_color = 0x222222ff_rgbaf;
#ifdef FM_SKIP_MSAA
GL::defaultFramebuffer.clearColor(clear_color);