Browse Source

Sdl2Application: add glContext() accessor.

pull/325/head
Guillaume Jacquemin 7 years ago committed by GitHub
parent
commit
95c01209a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/Magnum/Platform/Sdl2Application.h

12
src/Magnum/Platform/Sdl2Application.h

@ -530,6 +530,18 @@ class Sdl2Application {
SDL_Window* window() { return _window; }
#endif
#ifdef MAGNUM_TARGET_GL
/**
* @brief Underlying context
*
* Use in case you need to call SDL functionality directly.
* @note This function is available only if Magnum is compiled with
* @ref MAGNUM_TARGET_GL enabled (done by default). See @ref building-features
* for more information.
*/
SDL_GLContext glContext() { return _glContext; }
#endif
protected:
/* Nobody will need to have (and delete) Sdl2Application*, thus this is
faster than public pure virtual destructor */

Loading…
Cancel
Save