GLContext.this

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

  1. this(SDL_GLContext sdlGLContext, bool isOwner, void* userRef)
    class GLContext
    @system
    this
    (
    SDL_GLContext sdlGLContext
    ,
    bool isOwner = true
    ,
    void* userRef = null
    )
  2. this(Window window)

Parameters

sdlGLContext SDL_GLContext

the SDL_GLContext to manage

isOwner bool

whether the instance owns the given SDL_GLContext and should destroy it on its own

userRef void*

optional pointer to maintain reference link, avoiding GC cleanup

Meta