示例#1
0
文件: render.go 项目: emlai/go-sdl2
func (texture *Texture) GL_UnbindTexture() error {
	_ret := C.SDL_GL_UnbindTexture(texture.cptr())
	if _ret < 0 {
		return GetError()
	}
	return nil
}
示例#2
0
func (texture *Texture) GL_UnbindTexture() int {
	_texture := (*C.SDL_Texture)(unsafe.Pointer(texture))
	return (int)(C.SDL_GL_UnbindTexture(_texture))
}
示例#3
0
func (t *Texture) Unbind() bool {
	return int(C.SDL_GL_UnbindTexture(t.cTexture)) == 0
}
示例#4
0
func (texture *Texture) GL_UnbindTexture() int {
	return int(C.SDL_GL_UnbindTexture(texture.cptr()))
}