func ReadXPMFromArray(xpm string) (*sdl.Surface, error) { _xpm := C.CString(xpm) C.free(unsafe.Pointer(_xpm)) _surface := C.IMG_ReadXPMFromArray(&_xpm) if _surface == nil { return nil, GetError() } return (*sdl.Surface)(unsafe.Pointer(_surface)), nil }
func ReadXPMFromArray(xpm string) *sdl.Surface { _xpm := C.CString(xpm) C.free(unsafe.Pointer(_xpm)) return (*sdl.Surface)(unsafe.Pointer(C.IMG_ReadXPMFromArray(&_xpm))) }