Omar C. F
3cec231409
Fix return value when error occurs
2018-02-10 09:50:35 +02:00
Omar C. F
8b311835c5
Add missing bmp and gif mimetypes
2018-02-10 09:09:41 +02:00
Syoyo Fujita
4a6652650b
Merge branch 'devel' of github.com:syoyo/tinygltf into devel
2018-01-21 12:20:00 +09:00
Syoyo Fujita
1c6707eb66
Set GL_DOUBLE value from OpenGL spec. Fixes #35 .
2018-01-21 12:19:01 +09:00
Syoyo Fujita
c5a09f6a3b
Suppress clang warnigns.
...
Refactor code to use C++11 features.
2018-01-16 18:55:13 +09:00
Arthur Brainville
3b05513ba9
Silence a MSVC warning about narrowing conversion
...
We actually want to convert a size_t value into an int value in this
return statement.
Fix the annoying MSVC warning by actually casting the bytestride to an
int
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-10 01:27:12 +01:00
Arthur Brainville
3cd62e26e8
rename Color to ColorFactor
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-08 18:37:44 +01:00
Arthur Brainville
e4a2b2e942
Const qualify const methods
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-08 18:32:48 +01:00
Arthur Brainville
9adf96e18e
Add little utility methods to access the content of a Parameter object
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-08 18:25:52 +01:00
Syoyo Fujita
1b0040eff8
Fix argument to catch claus was wrong.
...
Add support to compile TinyGLTF with no C++ exception(TINYGLTF_NOEXCEPTION). Fixes #18 .
Add initial unit tests.
2018-01-05 20:14:46 +09:00
Syoyo Fujita
c7ebe93a70
Add method for computing byteStride to Accessor struct.
...
This would fix issue #29 .
2018-01-03 17:47:08 +09:00
Cemalettin Dervis
9cf0faece1
Fixed typo ("RPEAT")
2017-12-07 20:29:51 +01:00
Syoyo Fujita
f101588f35
Merge branch 'devel' into jsoncpp
2017-12-02 21:14:13 +09:00
Syoyo Fujita
0eaf4daa5c
Fix compile on iOS. Fixes #24 .
2017-11-15 01:03:09 +09:00
Emanuel Schrade
fafd4eca2a
Parse KHR_Lights_cmn extension
2017-11-06 11:14:49 +01:00
Syoyo Fujita
4959fc4857
User lowercase for Windows.h. Fixes #22 .
2017-11-05 17:18:46 +09:00
Syoyo Fujita
92fc93d641
Use json.hpp instead of picojson(W.I.P.)
2017-11-05 17:13:24 +09:00
Syoyo Fujita
bd8b97272a
Improve error message.
2017-10-19 18:48:26 +09:00
Florian Märkl
763d610b5f
Disable wordexp for Android
2017-09-22 15:25:48 +02:00
jianghaosen
60ca87443a
fix(row1728): accessor->normalize is a local variables and forget initial it. Beside, the value of p
...
accessor->normalize is a local variables and forget initial it, it may be true or false. Beside, the
value of parse glTF do not assign to normalize.
2017-08-29 20:08:37 +08:00
jianghaosen
4d9b6ed661
fix(row926): a bug that filename is empty when parse glb
...
when parse glb, filename maybe a empty value, it will be wrong
2017-08-25 21:01:17 +08:00
Syoyo Fujita
0cf19c377f
Check if JSON element is valid JSON object or not. Now all fuzz input passes. Fixes #16 .
2017-08-01 20:23:11 +09:00
Syoyo Fujita
b7947657dd
Wrap picojson::parse with exception clause to catch JSON parsing error.
2017-08-01 20:12:08 +09:00
Syoyo Fujita
181f2fc639
Hardened parsing and solved some issue found by fuzzer(issue 16).
2017-08-01 18:15:52 +09:00
Syoyo Fujita
f39a6fdbf0
Initial support of parsing/serializing Camera.
2017-07-13 18:20:14 +09:00
Syoyo Fujita
0fc763d219
Accessor.min and Accessor.max are now optional parameter.
...
Set BufferView.byteStride default value to 0(= tightly packed). Fixes #13 .
2017-07-12 18:29:29 +09:00
Syoyo Fujita
b8358d5059
Delete Accessor.byteStride field which was removed in glTF 2.0 spec.
2017-06-26 17:54:34 +09:00
Syoyo Fujita
8ecdfddf17
Fix bufferView.byteStride is read into byteLength property. Fixes #9
2017-06-24 20:57:05 +09:00
Syoyo Fujita
26908872ac
Rename filename/define/class name.
2017-06-21 02:52:11 +09:00