img_t *img_load_tga(const char *fname) { int flen; char *buf = net_fetch_file(fname, &flen); if(buf == NULL) return NULL; img_t *ret = img_parse_tga(flen, buf); free(buf); return ret; }
model_t *model_load_pmf(const char *fname) { int flen; char *buf = net_fetch_file(fname, &flen); if(buf == NULL) return NULL; model_t *ret = model_parse_pmf(flen, buf); free(buf); return ret; }