diff --git a/doc/changelog.dox b/doc/changelog.dox index 0128bf6a3..605f9df87 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -217,6 +217,8 @@ See also: @ref Platform::EmscriptenApplication and @ref Platform::Sdl2Application now notify about that in the verbose output (enabled with `?magnum-log=verbose`), previously only autodetected canvas size got printed +- Added @ref Platform::WindowlessIosContext::glContext() for consistency with + other context classes @subsubsection changelog-latest-changes-shaders Shaders library diff --git a/src/Magnum/Platform/WindowlessIosApplication.h b/src/Magnum/Platform/WindowlessIosApplication.h index 18bdc92a0..4b1b14243 100644 --- a/src/Magnum/Platform/WindowlessIosApplication.h +++ b/src/Magnum/Platform/WindowlessIosApplication.h @@ -119,6 +119,16 @@ class WindowlessIosContext { */ bool makeCurrent(); + /** + * @brief Underlying OpenGL context + * @m_since_latest + * + * Use in case you need to call EAGL functionality directly or in order + * to create a shared context. Returns @cpp nullptr @ce in case the + * context was not created yet. + */ + EAGLContext* glContext() { return _context; } + private: EAGLContext* _context{}; };