Example #1
0
// 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
}
Example #2
0
func GetNumDisplayModes(i int) (int, error) {
	nm := C.SDL_GetNumDisplayModes(C.int(i))
	if nm < 0 {
		return 0, getError()
	}

	return int(nm), nil
}
Example #3
0
func NumDisplayModes(index int) int {
	return int(C.SDL_GetNumDisplayModes(C.int(index)))
}
Example #4
0
func GetNumDisplayModes(displayIndex int) int {
	_displayIndex := (C.int)(displayIndex)
	return (int)(C.SDL_GetNumDisplayModes(_displayIndex))
}
Example #5
0
func NumDisplayModes(index int) int {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	return int(C.SDL_GetNumDisplayModes(C.int(index)))
}
Example #6
0
func GetNumDisplayModes(displayIndex int) int {
	return int(C.SDL_GetNumDisplayModes(C.int(displayIndex)))
}