示例#1
0
func (r *Renderer) CopyEx(t *Texture, src, dst *Rect, angle float64, center *Point, flip int) bool {
	ret := C.SDL_RenderCopyEx(r.cRenderer, t.cTexture,
		(*C.SDL_Rect)(cast(src)), (*C.SDL_Rect)(cast(dst)),
		C.double(angle), (*C.SDL_Point)(cast(center)), C.SDL_RendererFlip(flip))
	return int(ret) == 0
}
示例#2
0
文件: render.go 项目: emlai/go-sdl2
func (flip RendererFlip) c() C.SDL_RendererFlip {
	return C.SDL_RendererFlip(flip)
}
示例#3
0
文件: render.go 项目: willemvds/sdl
func (r RendererFlip) c() C.SDL_RendererFlip {
	return C.SDL_RendererFlip(r)
}