DrawCircleGradient() parameter names updated
This commit is contained in:
parent
ff18bb497b
commit
0f95293831
2 changed files with 7 additions and 7 deletions
|
@ -202,7 +202,7 @@ var drawLineBezier func(startPos uintptr, endPos uintptr, thick float32, col uin
|
||||||
var drawCircle func(centerX int32, centerY int32, radius float32, col uintptr)
|
var drawCircle func(centerX int32, centerY int32, radius float32, col uintptr)
|
||||||
var drawCircleSector func(center uintptr, radius float32, startAngle float32, endAngle float32, segments int32, col uintptr)
|
var drawCircleSector func(center uintptr, radius float32, startAngle float32, endAngle float32, segments int32, col uintptr)
|
||||||
var drawCircleSectorLines func(center uintptr, radius float32, startAngle float32, endAngle float32, segments int32, col uintptr)
|
var drawCircleSectorLines func(center uintptr, radius float32, startAngle float32, endAngle float32, segments int32, col uintptr)
|
||||||
var drawCircleGradient func(centerX int32, centerY int32, radius float32, color1 uintptr, color2 uintptr)
|
var drawCircleGradient func(centerX int32, centerY int32, radius float32, inner uintptr, outer uintptr)
|
||||||
var drawCircleV func(center uintptr, radius float32, col uintptr)
|
var drawCircleV func(center uintptr, radius float32, col uintptr)
|
||||||
var drawCircleLines func(centerX int32, centerY int32, radius float32, col uintptr)
|
var drawCircleLines func(centerX int32, centerY int32, radius float32, col uintptr)
|
||||||
var drawCircleLinesV func(center uintptr, radius float32, col uintptr)
|
var drawCircleLinesV func(center uintptr, radius float32, col uintptr)
|
||||||
|
@ -2045,8 +2045,8 @@ func DrawCircleSectorLines(center Vector2, radius float32, startAngle float32, e
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawCircleGradient - Draw a gradient-filled circle
|
// DrawCircleGradient - Draw a gradient-filled circle
|
||||||
func DrawCircleGradient(centerX int32, centerY int32, radius float32, color1 color.RGBA, color2 color.RGBA) {
|
func DrawCircleGradient(centerX int32, centerY int32, radius float32, inner color.RGBA, outer color.RGBA) {
|
||||||
drawCircleGradient(centerX, centerY, radius, *(*uintptr)(unsafe.Pointer(&color1)), *(*uintptr)(unsafe.Pointer(&color2)))
|
drawCircleGradient(centerX, centerY, radius, *(*uintptr)(unsafe.Pointer(&inner)), *(*uintptr)(unsafe.Pointer(&outer)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawCircleV - Draw a color-filled circle (Vector version)
|
// DrawCircleV - Draw a color-filled circle (Vector version)
|
||||||
|
|
|
@ -122,13 +122,13 @@ func DrawCircleSectorLines(center Vector2, radius, startAngle, endAngle float32,
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawCircleGradient - Draw a gradient-filled circle
|
// DrawCircleGradient - Draw a gradient-filled circle
|
||||||
func DrawCircleGradient(centerX, centerY int32, radius float32, col1, col2 color.RGBA) {
|
func DrawCircleGradient(centerX, centerY int32, radius float32, inner, outer color.RGBA) {
|
||||||
ccenterX := (C.int)(centerX)
|
ccenterX := (C.int)(centerX)
|
||||||
ccenterY := (C.int)(centerY)
|
ccenterY := (C.int)(centerY)
|
||||||
cradius := (C.float)(radius)
|
cradius := (C.float)(radius)
|
||||||
ccolor1 := colorCptr(col1)
|
cinner := colorCptr(inner)
|
||||||
ccolor2 := colorCptr(col2)
|
couter := colorCptr(outer)
|
||||||
C.DrawCircleGradient(ccenterX, ccenterY, cradius, *ccolor1, *ccolor2)
|
C.DrawCircleGradient(ccenterX, ccenterY, cradius, *cinner, *couter)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawCircleV - Draw a color-filled circle (Vector version)
|
// DrawCircleV - Draw a color-filled circle (Vector version)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue