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

@ -372,14 +372,9 @@ func Fade(color Color, alpha float32) Color {
return v
}
// ShowLogo - Activates raylib logo at startup (can be done with flags)
func ShowLogo() {
C.ShowLogo()
}
// SetConfigFlags - Setup some window configuration flags
func SetConfigFlags(flags byte) {
cflags := (C.uchar)(flags)
cflags := (C.uint)(flags)
C.SetConfigFlags(cflags)
}
@ -590,15 +585,17 @@ func GetMousePosition() Vector2 {
}
// SetMousePosition - Set mouse position XY
func SetMousePosition(position Vector2) {
cposition := position.cptr()
C.SetMousePosition(*cposition)
func SetMousePosition(x, y int) {
cx := (C.int)(x)
cy := (C.int)(y)
C.SetMousePosition(cx, cy)
}
// SetMouseScale - Set mouse scaling
func SetMouseScale(scale float32) {
cscale := (C.float)(scale)
C.SetMouseScale(cscale)
func SetMouseScale(scaleX, scaleY float32) {
cscaleX := (C.float)(scaleX)
cscaleY := (C.float)(scaleY)
C.SetMouseScale(cscaleX, cscaleY)
}
// GetMouseWheelMove - Returns mouse wheel movement Y