Mostly finished porting parser in C89 except for material loading.

This commit is contained in:
Syoyo Fujita
2016-07-15 01:47:01 +09:00
parent 5f76db8498
commit 0d1c60aafd
3 changed files with 119 additions and 129 deletions

View File

@@ -224,7 +224,8 @@ static int LoadObjAndConvert(float bmin[3], float bmax[3], const char* filename)
printf("filesize: %d\n", (int)data_len);
{
int ret = tinyobj_parse(&attrib, shapes, &num_shapes, data, data_len);
unsigned int flags = TINYOBJ_FLAG_TRIANGULATE;
int ret = tinyobj_parse(&attrib, shapes, &num_shapes, data, data_len, flags);
}
#if 0