Esempio n. 1
0
func (m *Map) DrawTintedRegion(tint color.Color, sx, sy, sw, sh, dx, dy float64, flags DrawFlags) {
	c := allegro.NewColor(tint)
	C.al_draw_tinted_map_region((*C.ALLEGRO_MAP)(m), *(*C.ALLEGRO_COLOR)(unsafe.Pointer(&c)),
		C.float(sx), C.float(sy), C.float(sw), C.float(sh), C.float(dx), C.float(dy),
		C.int(flags))
}
Esempio n. 2
0
func (m *Map) DrawTinted(tint color.Color, dx, dy float64, flags DrawFlags) {
	c := allegro.NewColor(tint)
	C.al_draw_tinted_map((*C.ALLEGRO_MAP)(m), *(*C.ALLEGRO_COLOR)(unsafe.Pointer(&c)),
		C.float(dx), C.float(dy), C.int(flags))
}