Commit graph

22 commits

Author SHA1 Message Date
Arseny Kapoulkine
095a1b0b92 Fix negative index parsing
Negative indices refer to offsets of vertices (before multiplying by
stride), but array size of position/etc. is multiplied by stride.

Integer division isn't ideal for performance, however division by 3 is
lowered into integer multiplication on gcc/clang/msvc so this shouldn't
be a big concern.
2019-06-01 12:07:30 -07:00
Richard Knight
814900cd31 Fix some compile warnings 2019-05-30 21:20:01 +01:00
Richard Knight
68692e0d42 Fix typo in previous change 2019-05-22 20:39:11 +01:00
unknown
c9aff21d1c Fix Windows compilation warnings 2019-05-22 10:55:27 +01:00
unknown
8abbedd6a1 Don't crash if we fail to read the material library 2019-05-22 10:50:31 +01:00
unknown
9ca2dc9796 Deal with differing path separators on Windows vs Mac/Linux 2019-05-22 10:48:54 +01:00
Richard Knight
c4fcea5a9f
Merge pull request #1 from HBurd/master
Removed POSIX dependency
2019-05-22 10:40:07 +01:00
HBurd
b1f8f1b17f demo fix for breaking api changes in tinyobj v1.3 2019-05-21 07:47:38 -07:00
HBurd
c32ce4ac6b removed posix dependency 2019-05-21 07:40:42 -07:00
Richard Knight
a4a143cfcd Remove Tr from material (now read as 'd' instead) 2019-05-19 17:40:24 +01:00
Richard Knight
023905f0ba Basic texture map information now read 2019-05-19 17:38:33 +01:00
Richard Knight
3fe5161190 Make sure redefined free callback is actually used 2019-05-19 12:02:41 +01:00
Richard Knight
c50de83c6b Add timing code to tests 2019-05-19 10:01:11 +01:00
Richard Knight
6f84c4fc9e Remove compile flags from CMakeLists.txt 2019-05-19 10:01:03 +01:00
Richard Knight
657e55922f Fix test when obj has no name 2019-05-19 09:52:26 +01:00
Richard Knight
57fe05171f Add CMakeLists.txt for tests 2019-05-19 09:52:11 +01:00
Richard Knight
092fea75d7 Add .gitignore file 2019-05-19 09:51:43 +01:00
Richard Knight
625043999c Allow memory allocation to be overridden 2019-05-19 09:51:23 +01:00
Richard Knight
005b738a2a Ensure static functions are static 2018-07-29 14:01:39 +01:00
Richard Knight
ef746985fb Slight reorganise to fit in with stb reqs 2018-07-29 13:59:16 +01:00
Richard Knight
bcc2d614f9 Add code, update readme 2018-07-29 13:41:09 +01:00
thisistherk
a0cfa7738d
Initial commit 2018-07-29 13:31:09 +01:00