示例#1
0
文件: bitmap.go 项目: beoran/algo
// Puts a pixel to the currently active bitmap
func PutPixel(x, y int, color Color) {
	C.al_put_pixel(C.int(x), C.int(y), color.toC())
}
示例#2
0
func (c Color) PutPixel(x, y int) {
	C.al_put_pixel(C.int(x), C.int(y), (C.ALLEGRO_COLOR)(c))
}
示例#3
0
func PutPixel(x, y int32, c *Color) {
	C.al_put_pixel(C.int(x), C.int(y), (C.ALLEGRO_COLOR)(*c))
}