GLContext.this

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

  1. this(SDL_GLContext sdlGLContext, bool isOwner, void* userRef)
  2. this(Window window)
    class GLContext
    @trusted
    this

Parameters

window Window

the default OpenGL dsdl2.Window to be set current as the rendering target for the context

Throws

dsdl2.SDLException if OpenGL context creation failed

Meta