Exemplo n.º 1
0
func (b *Bitmap) DrawTintedRegion(sx, sy, sw, sh, dx, dy float32, flags int, color Color) {

	C.al_draw_tinted_bitmap_region((*C.ALLEGRO_BITMAP)(b), (C.ALLEGRO_COLOR)(color),
		C.float(sx), C.float(sy),
		C.float(sw), C.float(sh), C.float(dx), C.float(dy), C.int(flags))

}
Exemplo n.º 2
0
func (b *Bitmap) DrawTintedRegion(tint *Color, sx, sy, sw, sh, dx, dy float32, flags int32) {
	C.al_draw_tinted_bitmap_region((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), (C.ALLEGRO_COLOR)(*tint), C.float(sx), C.float(sy), C.float(sw), C.float(sh), C.float(dx), C.float(dy), C.int(flags))
}