update raylib and deps
This commit is contained in:
parent
fd64d4172a
commit
276beaf660
32 changed files with 43820 additions and 12589 deletions
|
@ -90,3 +90,59 @@ func OpenAsset(name string) (Asset, error) {
|
|||
}
|
||||
return f, nil
|
||||
}
|
||||
|
||||
// IsWindowMaximized - Check if window has been maximized (only PLATFORM_DESKTOP)
|
||||
func IsWindowMaximized() bool {
|
||||
ret := C.IsWindowMaximized()
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// IsWindowFocused - Check if window has been focused
|
||||
func IsWindowFocused() bool {
|
||||
ret := C.IsWindowFocused()
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// UndecorateWindow - Undecorate the window (only PLATFORM_DESKTOP)
|
||||
func UndecorateWindow() {
|
||||
C.UndecorateWindow()
|
||||
}
|
||||
|
||||
// MaximizeWindow - Maximize the window, if resizable (only PLATFORM_DESKTOP)
|
||||
func MaximizeWindow() {
|
||||
C.MaximizeWindow()
|
||||
}
|
||||
|
||||
// RestoreWindow - Restore the window, if resizable (only PLATFORM_DESKTOP)
|
||||
func RestoreWindow() {
|
||||
C.RestoreWindow()
|
||||
}
|
||||
|
||||
// HideWindow - Hide the window
|
||||
func HideWindow() {
|
||||
C.HideWindow()
|
||||
}
|
||||
|
||||
// GetMonitorRefreshRate - Get primary monitor refresh rate
|
||||
func GetMonitorRefreshRate(monitor int) int {
|
||||
cmonitor := (C.int)(monitor)
|
||||
ret := C.GetMonitorRefreshRate(cmonitor)
|
||||
v := (int)(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// GetWindowScaleDPI - Get window scale DPI factor
|
||||
func GetWindowScaleDPI() Vector2 {
|
||||
ret := C.GetWindowScaleDPI()
|
||||
v := newVector2FromPointer(unsafe.Pointer(&ret))
|
||||
return v
|
||||
}
|
||||
|
||||
// IsCursorOnScreen - Check if cursor is on the current screen.
|
||||
func IsCursorOnScreen() bool {
|
||||
ret := C.IsCursorOnScreen()
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue