Browse Source

Platform: added WindowlessIosContext::glContext() for consistency.

All other classes have it, so why not here as well.
pull/498/head
Vladimír Vondruš 5 years ago
parent
commit
27074d97fe
  1. 2
      doc/changelog.dox
  2. 10
      src/Magnum/Platform/WindowlessIosApplication.h

2
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

10
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{};
};

Loading…
Cancel
Save