예제 #1
0
func (b *Bitmap) DrawScaled(sx, sy, sw, sh, cx, cy, cw, ch float32, flags int) {

	C.al_draw_scaled_bitmap((*C.ALLEGRO_BITMAP)(b),
		C.float(sx), C.float(sy), C.float(sw), C.float(sh),
		C.float(cx), C.float(cy), C.float(cw), C.float(ch), C.int(flags))

}
예제 #2
0
func (b *Bitmap) DrawScaled(sx, sy, sw, sh, dx, dy, dw, dh float32, flags int32) {
	C.al_draw_scaled_bitmap((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), C.float(sx), C.float(sy), C.float(sw), C.float(sh), C.float(dx), C.float(dy), C.float(dw), C.float(dh), C.int(flags))
}