Esempio n. 1
0
File: video.go Progetto: salihdb/sdl
// CurrentVideoDriver returns the name of the currently initialized video
// driver.
func CurrentVideoDriver() (driver string) {
	cDriver := C.SDL_GetCurrentVideoDriver()
	if cDriver == nil {
		return ""
	}
	return C.GoString(cDriver)
}
Esempio n. 2
0
func GetCurrentVideoDriver() string {
	return C.GoString(C.SDL_GetCurrentVideoDriver())
}