Example #1
0
File: video.go Project: 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)
}
Example #2
0
func GetCurrentVideoDriver() string {
	return C.GoString(C.SDL_GetCurrentVideoDriver())
}