Esempio n. 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
}
Esempio n. 2
0
File: video.go Progetto: 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
}
Esempio n. 3
0
func GetNumVideoDrivers() int {
	return (int)(C.SDL_GetNumVideoDrivers())
}