Skip to content

Commit

Permalink
#436 DrawCircleLinesV to cgo-version added
Browse files Browse the repository at this point in the history
  • Loading branch information
JupiterRider committed Oct 23, 2024
1 parent b7833ee commit 5c0fc5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions raylib/rshapes.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ func DrawCircleLines(centerX, centerY int32, radius float32, col color.RGBA) {
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
func DrawEllipse(centerX, centerY int32, radiusH, radiusV float32, col color.RGBA) {
ccenterX := (C.int)(centerX)
Expand Down

0 comments on commit 5c0fc5c

Please sign in to comment.