func GetDesktopDisplayMode(i int) (*DisplayMode, error) { var dm DisplayMode if C.SDL_GetDesktopDisplayMode(C.int(i), dm.c()) != 0 { return nil, getError() } return &dm, nil }
func GetDesktopDisplayMode(displayIndex int, mode *DisplayMode) int { _displayIndex := (C.int)(displayIndex) _mode := (*C.SDL_DisplayMode)(unsafe.Pointer(mode)) return (int)(C.SDL_GetDesktopDisplayMode(_displayIndex, _mode)) }
// GetDesktopDisplayMode (https://wiki.libsdl.org/SDL_GetDesktopDisplayMode) func GetDesktopDisplayMode(displayIndex int, mode *DisplayMode) error { if C.SDL_GetDesktopDisplayMode(C.int(displayIndex), mode.cptr()) != 0 { return GetError() } return nil }
func GetDesktopDisplayMode(displayIndex int, mode *DisplayMode) int { return int(C.SDL_GetDesktopDisplayMode(C.int(displayIndex), mode.cptr())) }