Exemple #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
}
Exemple #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
}
Exemple #3
0
func NumDisplayModes(index int) int {
	return int(C.SDL_GetNumDisplayModes(C.int(index)))
}
Exemple #4
0
func GetNumDisplayModes(displayIndex int) int {
	_displayIndex := (C.int)(displayIndex)
	return (int)(C.SDL_GetNumDisplayModes(_displayIndex))
}
Exemple #5
0
func NumDisplayModes(index int) int {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

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