Example #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
}
Example #2
0
func (flip RendererFlip) c() C.SDL_RendererFlip {
	return C.SDL_RendererFlip(flip)
}
Example #3
0
func (r RendererFlip) c() C.SDL_RendererFlip {
	return C.SDL_RendererFlip(r)
}