Esempio n. 1
0
func (c Color) DrawPixel(x, y float32) {
	C.al_draw_pixel(C.float(x), C.float(y), (C.ALLEGRO_COLOR)(c))
}
Esempio n. 2
0
// Draws a pixel on the active display at the given location
// with the given color
func DrawPixel(x, y float32, color Color) {
	C.al_draw_pixel(C.float(x), C.float(y), C.ALLEGRO_COLOR(color))
}
Esempio n. 3
0
func (b *Bitmap) DrawPixel(x, y float32, c *Color) {
	C.al_draw_pixel(C.float(x), C.float(y), (C.ALLEGRO_COLOR)(*c))
}