syoyo / tinyobjloader-c

Header only tiny wavefront .obj loader in pure C99
412 stars 60 forks source link

Added a hashtable implementation #5

Closed latencyhiding closed 7 years ago

latencyhiding commented 7 years ago

I wrote a hashtable implementation, though I didn't fully integrate it with the rest of the code as that requires an API change. The main contribution was hash_table_t, a struct that you pass to hashtable* functions.

latencyhiding commented 7 years ago

Ok I made parse_obj grab the indices of the appropriate material from a hashtable after parsing with parse_mtl. The API is not touched.

I haven't tested this fully yet, but input would be appreciated!

syoyo commented 7 years ago

Thanks! Merged.