Update DrawRectangleRoundedLines() (fixes #435)
This commit is contained in:
parent
1b93816b90
commit
c364e5b3f5
2 changed files with 6 additions and 6 deletions
|
@ -220,7 +220,7 @@ var drawRectangleGradientEx func(rec uintptr, topLeft uintptr, bottomLeft uintpt
|
||||||
var drawRectangleLines func(posX int32, posY int32, width int32, height int32, col uintptr)
|
var drawRectangleLines func(posX int32, posY int32, width int32, height int32, col uintptr)
|
||||||
var drawRectangleLinesEx func(rec uintptr, lineThick float32, col uintptr)
|
var drawRectangleLinesEx func(rec uintptr, lineThick float32, col uintptr)
|
||||||
var drawRectangleRounded func(rec uintptr, roundness float32, segments int32, col uintptr)
|
var drawRectangleRounded func(rec uintptr, roundness float32, segments int32, col uintptr)
|
||||||
var drawRectangleRoundedLines func(rec uintptr, roundness float32, segments int32, lineThick float32, col uintptr)
|
var drawRectangleRoundedLines func(rec uintptr, roundness float32, segments int32, col uintptr)
|
||||||
var drawTriangle func(v1 uintptr, v2 uintptr, v3 uintptr, col uintptr)
|
var drawTriangle func(v1 uintptr, v2 uintptr, v3 uintptr, col uintptr)
|
||||||
var drawTriangleLines func(v1 uintptr, v2 uintptr, v3 uintptr, col uintptr)
|
var drawTriangleLines func(v1 uintptr, v2 uintptr, v3 uintptr, col uintptr)
|
||||||
var drawTriangleFan func(points *Vector2, pointCount int32, col uintptr)
|
var drawTriangleFan func(points *Vector2, pointCount int32, col uintptr)
|
||||||
|
@ -2134,9 +2134,9 @@ func DrawRectangleRounded(rec Rectangle, roundness float32, segments int32, col
|
||||||
drawRectangleRounded(uintptr(unsafe.Pointer(&rec)), roundness, segments, *(*uintptr)(unsafe.Pointer(&col)))
|
drawRectangleRounded(uintptr(unsafe.Pointer(&rec)), roundness, segments, *(*uintptr)(unsafe.Pointer(&col)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawRectangleRoundedLines - Draw rectangle with rounded edges outline
|
// DrawRectangleRoundedLines - Draw rectangle lines with rounded edges
|
||||||
func DrawRectangleRoundedLines(rec Rectangle, roundness float32, segments float32, lineThick float32, col color.RGBA) {
|
func DrawRectangleRoundedLines(rec Rectangle, roundness float32, segments float32, col color.RGBA) {
|
||||||
drawRectangleRoundedLines(uintptr(unsafe.Pointer(&rec)), roundness, int32(segments), lineThick, *(*uintptr)(unsafe.Pointer(&col)))
|
drawRectangleRoundedLines(uintptr(unsafe.Pointer(&rec)), roundness, int32(segments), *(*uintptr)(unsafe.Pointer(&col)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawTriangle - Draw a color-filled triangle (vertex in counter-clockwise order!)
|
// DrawTriangle - Draw a color-filled triangle (vertex in counter-clockwise order!)
|
||||||
|
|
|
@ -293,8 +293,8 @@ func DrawRectangleRounded(rec Rectangle, roundness float32, segments int32, col
|
||||||
C.DrawRectangleRounded(*crec, croundness, csegments, *ccolor)
|
C.DrawRectangleRounded(*crec, croundness, csegments, *ccolor)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawRectangleRoundedLines - Draw rectangle with rounded edges outline
|
// DrawRectangleRoundedLines - Draw rectangle lines with rounded edges
|
||||||
func DrawRectangleRoundedLines(rec Rectangle, roundness float32, segments, lineThick float32, col color.RGBA) {
|
func DrawRectangleRoundedLines(rec Rectangle, roundness float32, segments, col color.RGBA) {
|
||||||
crec := rec.cptr()
|
crec := rec.cptr()
|
||||||
croundness := (C.float)(roundness)
|
croundness := (C.float)(roundness)
|
||||||
csegments := (C.int)(segments)
|
csegments := (C.int)(segments)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue