예제 #1
0
파일: sdl_gfx.go 프로젝트: veandco/go-sdl2
func RotoZoomSurfaceXY(src *sdl.Surface, angle, zoomx, zoomy float64, smooth int) *sdl.Surface {
	_angle := C.double(angle)
	_zoomx := C.double(zoomx)
	_zoomy := C.double(zoomy)
	_smooth := C.int(smooth)
	return (*sdl.Surface)(unsafe.Pointer(C.rotozoomSurfaceXY(unsafe.Pointer(src), _angle, _zoomx, _zoomy, _smooth)))
}
예제 #2
0
func RotozoomSurfaceXY(src *sdl.Surface, angle, zoomx, zoomy float64, smooth bool) *sdl.Surface {
	return (*sdl.Surface)(ptr(C.rotozoomSurfaceXY((*C.SDL_Surface)(ptr(src)), C.double(angle), C.double(zoomx), C.double(zoomy), b2ci(smooth))))
}