// GetNumDisplayModes (https://wiki.libsdl.org/SDL_GetNumDisplayModes) func GetNumDisplayModes(displayIndex int) (int, error) { n := int(C.SDL_GetNumDisplayModes(C.int(displayIndex))) if n < 0 { return n, GetError() } return n, nil }
func GetNumDisplayModes(i int) (int, error) { nm := C.SDL_GetNumDisplayModes(C.int(i)) if nm < 0 { return 0, getError() } return int(nm), nil }
func NumDisplayModes(index int) int { return int(C.SDL_GetNumDisplayModes(C.int(index))) }
func GetNumDisplayModes(displayIndex int) int { _displayIndex := (C.int)(displayIndex) return (int)(C.SDL_GetNumDisplayModes(_displayIndex)) }
func NumDisplayModes(index int) int { GlobalMutex.Lock() defer GlobalMutex.Unlock() return int(C.SDL_GetNumDisplayModes(C.int(index))) }
func GetNumDisplayModes(displayIndex int) int { return int(C.SDL_GetNumDisplayModes(C.int(displayIndex))) }