GLContext.makeCurrent

Wraps SDL_GL_MakeCurrent which makes a window current as the rendering target for OpenGL rendering

class GLContext
@trusted
void
makeCurrent

Parameters

window Window

new OpenGL dsdl2.Window to be set current as the rendering target for the context

Throws

dsdl2.SDLException if failed to set the new window current

Meta