Class GLContext

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

class GLContext ;

Constructors

NameDescription
this (sdlGLContext, isOwner, userRef) Constructs a dsdl2.GLContext from a vanilla SDL_GLContext from bindbc-sdl
this (window) Creates an OpenGL context to use by SDL, which wraps SDL_GL_CreateContext

Fields

NameTypeDescription
sdlGLContext void*Internal SDL_GLContext

Methods

NameDescription
makeCurrent (window) Wraps SDL_GL_MakeCurrent which makes a window current as the rendering target for OpenGL rendering