Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}