示例#1
0
文件: gl.go 项目: henkman/Go2D
func GL_DeleteContext(_context *GLContext) {
	C.SDL_GL_DeleteContext(C.SDL_GLContext(_context))
}
示例#2
0
文件: video.go 项目: DeedleFake/sdl
func (ctx GLContext) c() C.SDL_GLContext {
	return C.SDL_GLContext(ctx)
}
示例#3
0
文件: video.go 项目: flazz/go-sdl2
// 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
}
示例#4
0
文件: video.go 项目: flazz/go-sdl2
// GL_DeleteContext (https://wiki.libsdl.org/SDL_GL_DeleteContext)
func GL_DeleteContext(context GLContext) {
	C.SDL_GL_DeleteContext(C.SDL_GLContext(context))
}
示例#5
0
文件: video.go 项目: JalfResi/go-sdl2
func GL_MakeCurrent(window *Window, glcontext GLContext) int {
	return int(C.SDL_GL_MakeCurrent(window.cptr(), C.SDL_GLContext(glcontext)))
}