#436 DrawCircleLinesV to cgo-version added
This commit is contained in:
parent
b7833eeae8
commit
5c0fc5c528
1 changed files with 8 additions and 0 deletions
|
@ -134,6 +134,14 @@ func DrawCircleLines(centerX, centerY int32, radius float32, col color.RGBA) {
|
||||||
C.DrawCircleLines(ccenterX, ccenterY, cradius, *ccolor)
|
C.DrawCircleLines(ccenterX, ccenterY, cradius, *ccolor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DrawCircleLinesV - Draw circle outline (Vector version)
|
||||||
|
func DrawCircleLinesV(center Vector2, radius float32, col color.RGBA) {
|
||||||
|
ccenter := center.cptr()
|
||||||
|
cradius := (C.float)(radius)
|
||||||
|
ccolor := colorCptr(col)
|
||||||
|
C.DrawCircleLinesV(*ccenter, cradius, *ccolor)
|
||||||
|
}
|
||||||
|
|
||||||
// DrawEllipse - Draw ellipse
|
// DrawEllipse - Draw ellipse
|
||||||
func DrawEllipse(centerX, centerY int32, radiusH, radiusV float32, col color.RGBA) {
|
func DrawEllipse(centerX, centerY int32, radiusH, radiusV float32, col color.RGBA) {
|
||||||
ccenterX := (C.int)(centerX)
|
ccenterX := (C.int)(centerX)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue