Fixed signature of ImageDrawLineV
This commit is contained in:
parent
4ff5b2cdc8
commit
971b452217
1 changed files with 5 additions and 7 deletions
|
@ -392,18 +392,16 @@ func ImageDrawLine(dst *Image, startPosX, startPosY, endPosX, endPosY int32, col
|
|||
cendPosX := (C.int)(endPosX)
|
||||
cendPosY := (C.int)(endPosY)
|
||||
ccolor := colorCptr(col)
|
||||
C.ImageDrawLine(cdst, cstartPosX, cstartPosY, cendPosX, cendPosY, ccolor)
|
||||
C.ImageDrawLine(cdst, cstartPosX, cstartPosY, cendPosX, cendPosY, *ccolor)
|
||||
}
|
||||
|
||||
// ImageDrawLineV - Draw line within an image, vector version
|
||||
func ImageDrawLineV(dst *Image, startPosX, startPosY, endPosX, endPosY int32, col color.RGBA) {
|
||||
func ImageDrawLineV(dst *Image, start, end Vector2, col color.RGBA) {
|
||||
cdst := dst.cptr()
|
||||
cstartPosX := (C.int)(startPosX)
|
||||
cstartPosY := (C.int)(startPosY)
|
||||
cendPosX := (C.int)(endPosX)
|
||||
cendPosY := (C.int)(endPosY)
|
||||
cstart := start.cptr()
|
||||
cend := end.cptr()
|
||||
ccolor := colorCptr(col)
|
||||
C.ImageDrawLineV(cdst, cstartPosX, cstartPosY, cendPosX, cendPosY, ccolor)
|
||||
C.ImageDrawLineV(cdst, *cstart, *cend, *ccolor)
|
||||
}
|
||||
|
||||
// ImageDrawCircle - Draw a filled circle within an image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue