示例#1
0
func (b *Bitmap) DrawTinted(dx, dy float32, flags int, color Color) {

	C.al_draw_tinted_bitmap((*C.ALLEGRO_BITMAP)(b),
		(C.ALLEGRO_COLOR)(color), C.float(dx), C.float(dy), C.int(flags))

}
示例#2
0
func (b *Bitmap) DrawTinted(tint *Color, dx, dy float32, flags int32) {
	C.al_draw_tinted_bitmap((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), (C.ALLEGRO_COLOR)(*tint), C.float(dx), C.float(dy), C.int(flags))
}