func GL_DeleteContext(_context *GLContext) { C.SDL_GL_DeleteContext(C.SDL_GLContext(_context)) }
func (ctx GLContext) c() C.SDL_GLContext { return C.SDL_GLContext(ctx) }
// GL_MakeCurrent (https://wiki.libsdl.org/SDL_GL_MakeCurrent) func GL_MakeCurrent(window *Window, glcontext GLContext) error { if C.SDL_GL_MakeCurrent(window.cptr(), C.SDL_GLContext(glcontext)) != 0 { return GetError() } return nil }
// GL_DeleteContext (https://wiki.libsdl.org/SDL_GL_DeleteContext) func GL_DeleteContext(context GLContext) { C.SDL_GL_DeleteContext(C.SDL_GLContext(context)) }
func GL_MakeCurrent(window *Window, glcontext GLContext) int { return int(C.SDL_GL_MakeCurrent(window.cptr(), C.SDL_GLContext(glcontext))) }