SDL_GL_MakeCurrent

Set up an OpenGL context for rendering into an OpenGL window.

The context must have been created with a compatible window.

extern (C) nothrow @nogc extern
bool
SDL_GL_MakeCurrent

Parameters

window SDL_Window*

the window to associate with the context.

context SDL_GLContext

the OpenGL context to associate with the window.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta