Class GLContext
D class that wraps SDL_GLContext
enclosing an OpenGL context used for SDL
Constructors
Name | Description |
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
Name | Type | Description |
sdlGLContext
|
void* | Internal SDL_GLContext
|
Methods
Name | Description |
makeCurrent
(window)
|
Wraps SDL_GL_MakeCurrent which makes a window current as the rendering target for OpenGL rendering
|