Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#436 DrawCircleLinesV to cgo-version added #440

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading