Function GLContext.makeCurrent

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

void makeCurrent (
  Window window
) @trusted;

Parameters

NameDescription
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