GLContext

D class that wraps SDL_GLContext enclosing an OpenGL context used for SDL

Constructors

this
this(SDL_GLContext sdlGLContext, bool isOwner, void* userRef)

Constructs a dsdl2.GLContext from a vanilla SDL_GLContext from bindbc-sdl

this
this(Window window)

Creates an OpenGL context to use by SDL, which wraps SDL_GL_CreateContext

Destructor

~this
~this()
Undocumented in source.

Members

Functions

makeCurrent
void makeCurrent(Window window)

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

Variables

sdlGLContext
SDL_GLContext sdlGLContext;

Internal SDL_GLContext

Meta