Selmar Kok
87cedfc36d
Merge remote-tracking branch 'origin/master' into move_operator
2019-10-21 17:58:57 +02:00
Selmar Kok
6d1ff876af
use default noexcept move constructor / operator
2019-10-21 17:58:09 +02:00
Syoyo Fujita
ac5c351563
Fix parsing a glTF file with 2GB+ or lareger size.
2019-10-20 17:47:50 +09:00
Syoyo Fujita
fd009790ef
Merge pull request #211 from Selmar/add_missing_serialization
...
small serialization additions
2019-10-19 15:18:19 +09:00
Selmar Kok
b4e435ccac
set default values for baseColorFactor so that it has correct values when parsing a material without a pbrMetallicRoughness struct
2019-10-18 18:22:35 +02:00
Selmar Kok
006fe0e06c
add some missing serialization // add mesh==() weights comparison // use const iterator for extension serialization
2019-10-18 16:08:44 +02:00
Syoyo Fujita
45ccfda5bb
Merge pull request #209 from patriciogonzalezvivo/master
...
Adding glslViewer
2019-10-08 19:21:51 +09:00
Patricio Gonzalez Vivo
6249d917d3
adding glslViewer
2019-10-08 03:07:58 -07:00
Syoyo Fujita
c9256eaf71
Merge pull request #208 from toshiks/patch-1
...
Added project to Readme.md (QuickLook GLTF plugin)
2019-09-15 14:50:06 +09:00
Anton Klochkov
8992e69cc3
Added project to Readme.md (QuickLook GLTF plugin)
2019-09-15 01:25:47 +03:00
Syoyo Fujita
4668a1f061
Do not serialize pbrMetallicRoughness when they have all default values. Fixes #204
2019-09-13 15:32:22 +09:00
Syoyo Fujita
3a1e8fcec2
Add a link to Lighthouse 2.
2019-09-09 20:07:54 +09:00
Syoyo Fujita
04d5108af5
Merge pull request #202 from Ybalrid/fix_copy_assignment_operator
...
Fix broken copy-assignment operators
2019-09-06 13:58:54 +09:00
Arthur Brainville (Ybalrid)
b098ebea2f
Fix copy-assignment operator
...
When manual move constructor are declared, C++ compilers deletes the
copy constructor and copy-assign operator.
Most of these structures recently got a move ctor added, and copy ctor
re-enabled ( = default ). But copy-assignment are missing, thus in some
context, breaking instantiations of templates like std::vector<>.
2019-09-05 13:02:05 +02:00
Syoyo Fujita
5be7b3bb61
Suppress variable-is-shadowed warnings.
...
Apply clang-format.
Add note on RapidJSON and C++14 compilation flags.
2019-09-05 14:40:32 +09:00
Syoyo Fujita
9bc8ddc2cb
Merge branch 'master' of https://github.com/jrkoonce/tinygltf into jrkoonce-master
2019-09-05 14:22:51 +09:00
jrkoonce
8271949eed
Removing RapidJSON toggle
2019-09-04 13:46:59 -05:00
jrkoonce
40cf075785
Removing warnings
2019-09-04 13:46:45 -05:00
jrkoonce
5ab6a109b1
Support simultaneous gltf load/saves
...
Added support for RapidJSON's CrtAllocator which is stateless and allows multiple documents to be in use at once, removing that restriction on default documents. Enable with TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR
2019-09-04 13:31:44 -05:00
jrkoonce
c1be95f167
Revert "Support simultaneous gltf load/saves"
...
This reverts commit 6c81ffca8f .
2019-09-04 13:30:02 -05:00
jrkoonce
6c81ffca8f
Support simultaneous gltf load/saves
...
Added support for RapidJSON's CrtAllocator which is stateless and allows multiple documents to be in use at once, removing that restriction on default documents. Enable with TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR
2019-09-04 12:19:27 -05:00
jrkoonce
86fd5819da
Revert "Support simultaneous gltf load/saves (TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR)"
...
This reverts commit 2a6fda6e9c .
2019-09-04 12:15:51 -05:00
jrkoonce
2a6fda6e9c
Support simultaneous gltf load/saves (TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR)
...
This allows multiple gltf's to be loaded/saved in parallel. It removes the restriction of a single JsonDocument active at once which is default behavior. Enable with TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR
2019-09-04 12:01:39 -05:00
jrkoonce
1060872f0d
Fix Compiler Warnings
2019-09-04 10:50:55 -05:00
Syoyo Fujita
be20d6d266
Use const reference for Buffer to fix compilation.
...
Removed UTF BOM?
2019-09-04 14:26:58 +09:00
jrkoonce
9dea81428d
Revert accidental committed change
...
Put "JsonX" helpers back in anonymous namespace to keep them inside local translation unit.
2019-09-03 17:06:41 -05:00
jrkoonce
1ecd828e27
Fixed Bugs/Unit Tests Pass
...
Fixed bugs found by unit tests and got unit tests running with RapidJSON as well as nlohmann.
2019-09-03 15:56:48 -05:00
jrkoonce
5b6eec110d
Fixed move bugs
2019-09-03 10:42:39 -05:00
jrkoonce
1a9f68f933
Merge branch 'pr/1'
2019-09-03 10:30:19 -05:00
jrkoonce
d241703dd2
Made C++14 optional, default off.
2019-09-03 09:48:30 -05:00
Syoyo Fujita
e000c3094a
Merge pull request #200 from ux3d/feature/allow-scenes-without-nodes
...
allow scenes without nodes
2019-09-02 22:12:15 +09:00
Benjamin Schmithüsen
67a4a96803
remove extra parenthesis
2019-09-02 13:43:24 +02:00
Benjamin Schmithüsen
3e8a0d9c55
don't fail if a scene has no nodes property (which is not required)
2019-09-02 13:41:59 +02:00
Syoyo Fujita
c6254a4fad
Rename typeSizeInBytes to numComponents.
2019-08-30 19:19:52 +09:00
DingboDingboDingbo
6d32726edf
GetTypeSizeInBytes not returning Type Size In Bytes
...
Changed name to be less misleading.
2019-08-29 18:49:15 -04:00
jrkoonce
176b41d5db
Fix bug in ParseNumberArrayProperty()
...
Only doubles were being accepted instead of any number (including ordinals)
2019-08-29 13:56:58 -05:00
jrkoonce
e7bf47ac8a
More cleanup
...
1. Reserve array memory when converting JSON to Value for heap efficiency.
2. Grouped more JSON abstraction functions together and put in anonymous namespace instead of making each static.
2019-08-29 11:45:04 -05:00
jrkoonce
bd7816eb9a
Remove test code accidentally commited
2019-08-29 11:28:07 -05:00
jrkoonce
cfdf552137
RapidJson 1.1 support + More move semantics
...
*Support for RapidJson 1.1, use TINYGLTF_USE_RAPIDJSON to toggle between RapidJson and nlohmann
*Lot more move semantics enabled. All parsing and serialization now move all json objects with far fewer copies
2019-08-29 11:26:22 -05:00
jrkoonce
37f8c09e5a
Update tiny_gltf.h
...
Add/Enable move semantics to most all structs/classes
2019-08-27 11:51:02 -05:00
Syoyo Fujita
19c394de3f
Apply clang format.
...
Remove `const static std::string` global variable.
2019-08-24 16:29:14 +09:00
Syoyo Fujita
8733047d09
Add Set/Get SerializeDefaultValues method(W.I.P.)
2019-08-21 14:23:00 +09:00
Syoyo Fujita
d44eccda9a
Merge pull request #195 from ux3d/fix/parse-int-as-double
...
(also) parse int as double
2019-08-20 19:33:20 +09:00
Syoyo Fujita
8935b0120e
Merge branch 'master' of github.com:syoyo/tinygltf
2019-08-20 17:11:29 +09:00
Syoyo Fujita
f20f38ac5e
Suppress clang warnings.
2019-08-20 17:10:30 +09:00
Syoyo Fujita
08f08792c9
Merge pull request #193 from Selmar/emissiveFactor_defaults
...
Emissive factor defaults
2019-08-20 13:13:12 +09:00
Benjamin Schmithüsen
ab4280c8c1
when parsing a number from an int, also set the 'real value' to the value
2019-08-19 16:16:43 +02:00
Selmar Kok
0bf4804fa9
[emissiveFactor] correct default values
2019-08-19 11:23:31 +02:00
Selmar Kok
a67e3142b6
[emissiveFactor] fix inconsistency with baseColorFactor where default values were set only for baseColorFactor and not emissiveFactor
2019-08-19 11:05:28 +02:00
Syoyo Fujita
d4911dba7a
Merge pull request #191 from Selmar/animation_extension_properties
...
Animation extension properties
2019-08-17 01:09:34 +09:00