Update C sources
This commit is contained in:
parent
efd3445362
commit
7ab77a4730
103 changed files with 25993 additions and 13806 deletions
|
@ -309,11 +309,14 @@ func ImageDraw(dst, src *Image, srcRec, dstRec Rectangle, tint Color) {
|
|||
}
|
||||
|
||||
// ImageDrawRectangle - Draw rectangle within an image
|
||||
func ImageDrawRectangle(dst *Image, rec Rectangle, color Color) {
|
||||
func ImageDrawRectangle(dst *Image, x, y, width, height int32, color Color) {
|
||||
cdst := dst.cptr()
|
||||
crec := rec.cptr()
|
||||
cx := (C.int)(x)
|
||||
cy := (C.int)(y)
|
||||
cwidth := (C.int)(width)
|
||||
cheight := (C.int)(height)
|
||||
ccolor := color.cptr()
|
||||
C.ImageDrawRectangle(cdst, *crec, *ccolor)
|
||||
C.ImageDrawRectangle(cdst, cx, cy, cwidth, cheight, *ccolor)
|
||||
}
|
||||
|
||||
// ImageDrawRectangleLines - Draw rectangle lines within an image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue