Пример #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
}
Пример #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
}
Пример #3
0
func GetNumVideoDisplays() int {
	return int(C.SDL_GetNumVideoDisplays())
}