コード例 #1
0
ファイル: graphics.go プロジェクト: bluepeppers/allegro
func (c Color) DrawPixel(x, y float32) {
	C.al_draw_pixel(C.float(x), C.float(y), (C.ALLEGRO_COLOR)(c))
}
コード例 #2
0
ファイル: display.go プロジェクト: beoran/algo
// 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))
}
コード例 #3
0
ファイル: graphics.go プロジェクト: b1naryth1ef/allegro
func (b *Bitmap) DrawPixel(x, y float32, c *Color) {
	C.al_draw_pixel(C.float(x), C.float(y), (C.ALLEGRO_COLOR)(*c))
}