Exemplo n.º 1
0
Arquivo: image.go Projeto: d3x0r/SACK
func BlotImage(dest Image, source Image, x, y int) {
	C.__BlotImage(dest, source, C.S_32(x), C.S_32(y), 0)
}
Exemplo n.º 2
0
Arquivo: image.go Projeto: d3x0r/SACK
func BlotImageAlpha(dest Image, image Image, x, y int) {
	C.__BlotImage(dest, image, C.S_32(x), C.S_32(y), ALPHA_TRANSPARENT)
}
Exemplo n.º 3
0
Arquivo: image.go Projeto: d3x0r/SACK
func FillRect(image Image, x, y int, w, h uint, c Color) {
	fmt.Println("image is ", image, " color is ", c.rgba)
	C._BlatColor(image, C.S_32(x), C.S_32(y), C._32(w), C._32(h), C.CDATA(c.rgba))
}