示例#1
0
文件: video.go 项目: 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)
}
示例#2
0
文件: video.go 项目: krig/Go-SDL2
func GetCurrentVideoDriver() string {
	return C.GoString(C.SDL_GetCurrentVideoDriver())
}