diff --git a/src/Magnum/Platform/AndroidApplication.cpp b/src/Magnum/Platform/AndroidApplication.cpp index c8441e5c5..63ecf1e73 100644 --- a/src/Magnum/Platform/AndroidApplication.cpp +++ b/src/Magnum/Platform/AndroidApplication.cpp @@ -41,6 +41,10 @@ extern "C" void ANativeActivity_onCreate(struct ANativeActivity*, void*, size_t) namespace Magnum { namespace Platform { +enum class AndroidApplication::Flag: UnsignedByte { + Redraw = 1 << 0 +}; + struct AndroidApplication::LogOutput { LogOutput(); @@ -175,6 +179,10 @@ void AndroidApplication::swapBuffers() { eglSwapBuffers(_display, _surface); } +void AndroidApplication::redraw() { + _flags |= Flag::Redraw; +} + void AndroidApplication::viewportEvent(ViewportEvent& event) { static_cast(event); } diff --git a/src/Magnum/Platform/AndroidApplication.h b/src/Magnum/Platform/AndroidApplication.h index bb4de88d6..dd6bf3503 100644 --- a/src/Magnum/Platform/AndroidApplication.h +++ b/src/Magnum/Platform/AndroidApplication.h @@ -346,7 +346,7 @@ class AndroidApplication { void swapBuffers(); /** @copydoc Sdl2Application::redraw() */ - void redraw() { _flags |= Flag::Redraw; } + void redraw(); private: /** @@ -421,9 +421,7 @@ class AndroidApplication { private: struct LogOutput; - enum class Flag: UnsignedByte { - Redraw = 1 << 0 - }; + enum class Flag: UnsignedByte; typedef Containers::EnumSet Flags; static void commandEvent(android_app* state, std::int32_t cmd);