getCurrentGLContext

Wraps SDL_GL_GetCurrentContext which gets the current OpenGL context used by SDL

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

@safe @system
getCurrentGLContext
()

Return Value

Type: GLContext

dsdl2.GLContext proxy to the OpenGL context used by SDL

Throws

dsdl2.SDLException if unable to get the context

Meta