Beispiel #1
0
// GetNumVideoDisplays (https://wiki.libsdl.org/SDL_GetNumVideoDisplays)
func GetNumVideoDisplays() (int, error) {
	n := int(C.SDL_GetNumVideoDisplays())
	if n < 0 {
		return n, GetError()
	}
	return n, nil
}
Beispiel #2
0
// DisplayCount returns the number of available video displays.
func DisplayCount() (n int, err error) {
	n = int(C.SDL_GetNumVideoDisplays())
	if n < 0 {
		return 0, getError()
	}
	return n, nil
}
Beispiel #3
0
func GetNumVideoDisplays() int {
	return int(C.SDL_GetNumVideoDisplays())
}