Commit Graph

912 Commits

Author SHA1 Message Date
Syoyo Fujita
d579372d55 Update readme. 2022-12-29 21:50:47 +09:00
Syoyo Fujita
fa1d58bdb5 Merge branch 'release' of github.com:syoyo/tinygltf into release v2.7.0 2022-12-29 21:13:48 +09:00
Syoyo Fujita
dd80f8bab9 Merge pull request #393 from pknowlesnv/serialize_const
allow serializing a const Model
2022-12-29 21:00:24 +09:00
Pyarelal Knowles
4dd58c77d8 allow serializing a const Model
Adds 'const' to all Serialize*() methods.

Updates WriteImageData callback to take a URI out pointer that was
previously being written to the Image::uri, which is now const.

This breaks the WriteImageData API and as a side effect, Image::uri will
no longer contain the written image URI after saving.

Adds test serialize-const-image, which verifies the model's image is not
changed (because it's const), but the uri written to the gltf json is
still correct.

Adds test serialize-image-callback that defines a WriteImageDataFunction
and also verifies the uri can be overwritten.
2022-12-28 17:20:09 -08:00
Syoyo Fujita
18fd5cd8c8 Merge pull request #395 from ethanpepro/cmake-export
Add CMake export configuration
2022-12-28 18:33:36 +09:00
James Luke
73a7e25408 Add CMake export configuration 2022-12-27 21:12:54 -05:00
Syoyo Fujita
d8f09bbafa Merge branch 'release' of github.com:syoyo/tinygltf into release 2022-12-03 19:42:27 +09:00
Syoyo Fujita
6d6d214bfe Remove Python 2 description. 2022-12-03 19:40:50 +09:00
Syoyo Fujita
0a4442669a Update README.md
Remove Python 2.x description
2022-12-03 19:40:45 +09:00
Syoyo Fujita
6efbc4f6b4 Create FUNDING.yml 2022-12-03 18:33:05 +09:00
Syoyo Fujita
a6c693fe86 Merge pull request #390 from eduardodoria/patch-1
Added Supernova Engine to Projects using TinyGLTF
2022-11-07 21:18:50 +09:00
Eduardo Doria
830b0d6f6e Added Supernova Engine to Projects using TinyGLTF 2022-11-07 08:53:47 -03:00
Syoyo Fujita
f5c30d9f65 Merge pull request #388 from stromaster/patch-1
Avoid multiple asset_manager definitions on Android
2022-10-31 17:40:40 +09:00
Serdar Kocdemir
26a91681df Avoid multiple asset_manager definition on Android
Using TINYGLTF_IMPLEMENTATION to make the actual definition of the 'asset_manager' global variable.
2022-10-30 22:32:59 +00:00
Syoyo Fujita
7c474fca58 Merge pull request #386 from geometrian/master
Fix Clang Compile Warnings/Errors (and Typos)
2022-10-08 19:08:22 +09:00
imallett
70ffaf85a1 Patch to fix previous commit for MinGW. 2022-10-07 11:20:39 -07:00
imallett
6d1c56a8ae Fix a gazillion typos. 2022-10-07 10:37:09 -07:00
imallett
14ffe84f33 Fix various type mismatches and header include case (fixes compile warnings on Clang). 2022-10-07 10:35:16 -07:00
Syoyo Fujita
c6bb14d1f2 Merge pull request #385 from operatios/master
Fix UTF-8 filepath on LLVM MinGW
2022-09-25 05:35:36 +09:00
operatios
7c3bb11092 Fix UTF-8 filepath on LLVM MinGW 2022-09-24 22:37:14 +03:00
Syoyo Fujita
cad515fbc3 Add WASI build procedure. 2022-09-22 04:36:58 +09:00
Syoyo Fujita
39cda35e60 v2.6.3 v2.6.3 2022-09-19 03:36:58 +09:00
Syoyo Fujita
f8d21b6668 Merge pull request #382 from syoyo/glb-zero-chunk
Fix parsing GLB file with empty Chunk1(BIN data).
2022-09-19 03:34:09 +09:00
Syoyo Fujita
ec798b8ed5 Clear error/warn message. 2022-09-19 03:29:57 +09:00
Syoyo Fujita
6e3b1e581c Fix handling <4 byte BIN data.
Fix handling GLB file with empty CHUNK1(BIN).
2022-09-18 21:01:39 +09:00
Kh4n
a68a584cde readd toplevel makefile 2022-09-17 15:39:28 -05:00
Kh4n
e6eb3d8c9f update test to match gltf-validator 2022-09-17 13:02:39 -05:00
Kh4n
58ed757d39 update gitignore to remove test file
readd accidental removals in gitignore

undo autoformat

more undo autoformatting
2022-09-17 12:52:59 -05:00
Kh4n
96f988add7 added tests to cover empty, empty buffer, and single byte buffer cases 2022-09-17 12:28:39 -05:00
Syoyo Fujita
d4eaeba227 Fix parsing GLB file with empty Chunk1(BIN data). 2022-09-17 19:52:25 +09:00
Syoyo Fujita
fbf2acc6db Add note on v2.6.2(Fix out-of-bounds access of accessors. PR#379) 2022-09-16 17:27:20 +09:00
Syoyo Fujita
e7575a0f1d Merge pull request #380 from AlvaroBarua/master
Fixes compiler warning on VS (Unreachable code detected)
2022-09-11 17:56:55 +09:00
AlvaroBarua
16b7dbdfeb Fixes compiler warning on VS (Unreachable code detected) 2022-09-11 00:41:43 +01:00
Syoyo Fujita
3b36f81dd1 Merge pull request #379 from nirmal/patch-1
Fix possible out of bounds index in LoadFromString
2022-09-07 01:52:55 +09:00
Nirmal Patel
96e4947ac0 Fix possible out of bounds index in LoadFromString 2022-09-06 09:16:31 -07:00
Syoyo Fujita
5fb2914430 v2.6.1 2022-09-06 22:02:31 +09:00
Syoyo Fujita
51e9ef7375 Merge pull request #374 from syoyo/glb_chunk_check
Better GLB data size check when reading.
2022-09-06 21:35:47 +09:00
Syoyo Fujita
36adba82ac Merge pull request #377 from zbendefy/master
Auto detect C++14 standard version
2022-09-06 14:01:26 +09:00
zbendefy
e57f3b69b1 Auto detect C++14 standard version 2022-09-05 23:54:57 +02:00
Syoyo Fujita
3847a94896 Merge pull request #376 from kacprzak/master
Read from moved object
2022-09-03 01:16:41 +09:00
Marcin Kacprzak
87b1030008 Fix read from moved object. 2022-09-02 16:15:54 +02:00
Marcin Kacprzak
a39a2fddd5 Silence MS code analysis tool. 2022-09-02 16:13:11 +02:00
Syoyo Fujita
04bb650656 Create codeql-analysis.yml 2022-09-02 05:09:09 +09:00
Syoyo Fujita
49068c01d4 GLB: Fix interger-overflow when calculating JSON Chunk size.
GLB: Check BIN Chunk size.
GLB: Chenk byte alignment of each chunk.
2022-08-26 22:06:53 +09:00
Syoyo Fujita
ed7fafa028 Update README. 2022-08-19 18:21:24 +09:00
Syoyo Fujita
1679a6c498 Merge branch 'master' of github.com:syoyo/tinygltf 2022-08-16 20:11:52 +09:00
Syoyo Fujita
d296c7696d Do not expand file path since its not necessary for glTF asset path(URI) and for security reason(wordexp). 2022-08-16 20:08:45 +09:00
Syoyo Fujita
19bf21d06d Merge pull request #367 from fynv/master
Sparse accessor: typo fix
2022-08-14 20:54:01 +09:00
Fei Yang
bd2b751fd2 Merge branch 'syoyo:master' into master 2022-08-14 19:50:14 +08:00
feiy
0b6a2760d8 Sparse accessor serialization: typo fix. 2022-08-14 19:49:07 +08:00