Exemplo n.º 1
0
Arquivo: video.go Projeto: 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)
}
Exemplo n.º 2
0
func GetCurrentVideoDriver() string {
	return C.GoString(C.SDL_GetCurrentVideoDriver())
}