Example #1
0
// GetNumVideoDrivers (https://wiki.libsdl.org/SDL_GetNumVideoDrivers)
func GetNumVideoDrivers() (int, error) {
	n := int(C.SDL_GetNumVideoDrivers())
	if n < 0 {
		return n, GetError()
	}
	return n, nil
}
Example #2
0
File: video.go Project: salihdb/sdl
// VideoDriverCount returns the number of video drivers compiled into SDL.
func VideoDriverCount() (n int, err error) {
	n = int(C.SDL_GetNumVideoDrivers())
	if n < 0 {
		return 0, getError()
	}
	return n, nil
}
Example #3
0
func GetNumVideoDrivers() int {
	return (int)(C.SDL_GetNumVideoDrivers())
}