func GetRenderDriverInfo(i int) (*RendererInfo, error) { var r RendererInfo if C.SDL_GetRenderDriverInfo(C.int(i), r.c()) != 0 { return nil, getError() } return &r, nil }
// GetRenderDriverInfo (https://wiki.libsdl.org/SDL_GetRenderDriverInfo) func GetRenderDriverInfo(index int, info *RendererInfo) int { var cinfo cRendererInfo ret := int(C.SDL_GetRenderDriverInfo(C.int(index), cinfo.cptr())) info.RendererInfoData = cinfo.RendererInfoData // No need to free, it's done by DestroyRenderer info.Name = C.GoString(cinfo.Name) return ret }
func GetRenderDriverInfo(_index int) *RendererInfo { var rendererInfo *RendererInfo = &RendererInfo{} C.SDL_GetRenderDriverInfo(C.int(_index), (*C.SDL_RendererInfo)(cast(rendererInfo))) return rendererInfo }
func GetRenderDriverInfo(index int, info *RendererInfo) int { _index := (C.int)(index) _info := (*C.SDL_RendererInfo)(unsafe.Pointer(info)) return (int)(C.SDL_GetRenderDriverInfo(_index, _info)) }