Added bindings for DrawCylinderWiresEx and DrawCylinderEx.
This commit is contained in:
parent
892ce4892c
commit
c5afb3b941
1 changed files with 21 additions and 1 deletions
|
@ -147,8 +147,18 @@ func DrawCylinder(position Vector3, radiusTop float32, radiusBottom float32, hei
|
||||||
C.DrawCylinder(*cposition, cradiusTop, cradiusBottom, cheight, cslices, *ccolor)
|
C.DrawCylinder(*cposition, cradiusTop, cradiusBottom, cheight, cslices, *ccolor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func DrawCylinderEx(startPos Vector3, endPos Vector3, startRadius float32, endRadius float32, sides int32, col color.RGBA) {
|
||||||
|
cstartPos := startPos.cptr()
|
||||||
|
cendPos := endPos.cptr()
|
||||||
|
cstartRadius := (C.float)(startRadius)
|
||||||
|
cendRadius := (C.float)(endRadius)
|
||||||
|
csides := (C.int)(sides)
|
||||||
|
ccolor := colorCptr(col)
|
||||||
|
C.DrawCylinderEx(*cposition, cradiusTop, cradiusBottom, cheight, cslices, *ccolor)
|
||||||
|
}
|
||||||
|
|
||||||
// DrawCylinderWires - Draw a cylinder/cone wires
|
// DrawCylinderWires - Draw a cylinder/cone wires
|
||||||
func DrawCylinderWires(position Vector3, radiusTop float32, radiusBottom float32, height float32, slices int32, col color.RGBA) {
|
func DrawCylinderWires(cstartPos Vector3, cendPos Vector3, cstartRadius float32, cendRadius float32, csides int32, col color.RGBA) {
|
||||||
cposition := position.cptr()
|
cposition := position.cptr()
|
||||||
cradiusTop := (C.float)(radiusTop)
|
cradiusTop := (C.float)(radiusTop)
|
||||||
cradiusBottom := (C.float)(radiusBottom)
|
cradiusBottom := (C.float)(radiusBottom)
|
||||||
|
@ -158,6 +168,16 @@ func DrawCylinderWires(position Vector3, radiusTop float32, radiusBottom float32
|
||||||
C.DrawCylinderWires(*cposition, cradiusTop, cradiusBottom, cheight, cslices, *ccolor)
|
C.DrawCylinderWires(*cposition, cradiusTop, cradiusBottom, cheight, cslices, *ccolor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func DrawCylinderWiresEx(startPos Vector3, endPos Vector3, startRadius float32, endRadius float32, sides int32, col color.RGBA) {
|
||||||
|
cstartPos := startPos.cptr()
|
||||||
|
cendPos := endPos.cptr()
|
||||||
|
cstartRadius := (C.float)(startRadius)
|
||||||
|
cendRadius := (C.float)(endRadius)
|
||||||
|
csides := (C.int)(sides)
|
||||||
|
ccolor := colorCptr(col)
|
||||||
|
C.DrawCylinderWiresEx(*cposition, cradiusTop, cradiusBottom, cheight, cslices, *ccolor)
|
||||||
|
}
|
||||||
|
|
||||||
// DrawCapsule - Draw a capsule with the center of its sphere caps at startPos and endPos
|
// DrawCapsule - Draw a capsule with the center of its sphere caps at startPos and endPos
|
||||||
func DrawCapsule(startPos, endPos Vector3, radius float32, slices, rings int32, col color.RGBA) {
|
func DrawCapsule(startPos, endPos Vector3, radius float32, slices, rings int32, col color.RGBA) {
|
||||||
cstartPos := startPos.cptr()
|
cstartPos := startPos.cptr()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue