Function getCurrentGLContext

Wraps SDL_GL_GetCurrentContext which gets the current OpenGL context used by SDL

GLContext getCurrentGLContext();

This function is marked as @system due to the potential of referencing invalid memory.

Returns

dsdl2.GLContext proxy to the OpenGL context used by SDL

Throws

dsdl2.SDLException if unable to get the context