Update C sources

This commit is contained in:
Milan Nikolic 2019-11-25 03:34:31 +01:00
parent 02424e2e10
commit bd6bf15356
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
53 changed files with 62247 additions and 9914 deletions

View file

@ -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()