Update C sources
This commit is contained in:
parent
02424e2e10
commit
bd6bf15356
53 changed files with 62247 additions and 9914 deletions
|
@ -117,7 +117,7 @@ func DrawRectanglePro(rec Rectangle, origin Vector2, rotation float32, colors []
|
|||
corigin := origin.cptr()
|
||||
crotation := (C.float)(rotation)
|
||||
ccolor := (*C.Color)(unsafe.Pointer(&colors[0]))
|
||||
C.DrawRectanglePro(*crec, *corigin, crotation, ccolor)
|
||||
C.DrawRectanglePro(*crec, *corigin, crotation, *ccolor)
|
||||
}
|
||||
|
||||
// DrawRectangleGradientV - Draw a vertical-gradient-filled rectangle
|
||||
|
@ -206,22 +206,6 @@ func DrawPoly(center Vector2, sides int32, radius, rotation float32, color Color
|
|||
C.DrawPoly(*ccenter, csides, cradius, crotation, *ccolor)
|
||||
}
|
||||
|
||||
// DrawPolyEx - Draw a closed polygon defined by points
|
||||
func DrawPolyEx(points []Vector2, numPoints int32, color Color) {
|
||||
cpoints := points[0].cptr()
|
||||
cnumPoints := (C.int)(numPoints)
|
||||
ccolor := color.cptr()
|
||||
C.DrawPolyEx(cpoints, cnumPoints, *ccolor)
|
||||
}
|
||||
|
||||
// DrawPolyExLines - Draw polygon lines
|
||||
func DrawPolyExLines(points []Vector2, numPoints int32, color Color) {
|
||||
cpoints := points[0].cptr()
|
||||
cnumPoints := (C.int)(numPoints)
|
||||
ccolor := color.cptr()
|
||||
C.DrawPolyExLines(cpoints, cnumPoints, *ccolor)
|
||||
}
|
||||
|
||||
// CheckCollisionRecs - Check collision between two rectangles
|
||||
func CheckCollisionRecs(rec1, rec2 Rectangle) bool {
|
||||
crec1 := rec1.cptr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue