snowapril
eafd9bed15
Delete unused variable initialization code
...
Line 4536 in tinygltf.h file, there is unused variable initialization code like below.
```c++
const auto pBuffer = pAttribute->buffer();
```
gcc compiler complain about that unused variable.
I found there is no side-effect in `pAttribute->buffer()` call and also pBuffer variable is never used. Therefore I delete that line entirely.
2021-03-30 00:16:04 +09:00
Syoyo Fujita
c5b9e312bd
Merge pull request #314 from Snowapril/master
...
Add (void)err for handling unused variable warning
2021-03-20 19:59:44 +09:00
snowapril
07c2864649
add (void)err for handling unused variable warning
...
I saw in the `ParseExtensionsProperty`(3667) function,
unused variable err argument is wrapped with (void) keword.
I think err argument in the `ParseDracoExtension`(4472) is exactly
same situation with the above one.
For consistency, I think it need to be added (void)err in the
`ParseDracoExtension` function.
2021-03-20 19:25:58 +09:00
Syoyo Fujita
a557bd0deb
Merge pull request #312 from AlvaroBarua/no_include_rapidjson
...
Added TINYGLTF_NO_INCLUDE_RAPIDJSON
2021-03-19 14:32:35 +09:00
AlvaroBarua
0fd9b3cd31
Updated Readme.md
2021-03-18 18:40:09 +00:00
Alvaro Barua
2bd38a0d51
Added TINYGLTF_NO_INCLUDE_RAPIDJSON for consistency and because my project already used rapidjson/
2021-03-18 00:21:23 +00:00
Syoyo Fujita
ec03333722
Merge pull request #310 from syoyo/write-assert-version
...
`asset.version` is a required field
2021-03-03 00:35:55 +09:00
Syoyo Fujita
dd002c761f
asset.version is a required field so write "2.0" when asset.version is empty. Fixes #308
2021-03-02 19:08:29 +09:00
Syoyo Fujita
879d53d130
Add CMake file and Makefile for examples/build-gltf
2021-02-26 18:34:00 +09:00
Dov Grobgeld
2cb49f138a
Add example for creating a triangle gltf file from scratch
2021-02-26 09:30:05 +02:00
Syoyo Fujita
939e85f452
Merge pull request #306 from mahiuchun/const
...
Drop an unnecessary 'const'.
2021-02-21 16:07:51 +09:00
Hill Ma
d118748400
Drop an unnecessary 'const'.
2021-02-20 22:30:44 -08:00
Syoyo Fujita
4417307835
Merge pull request #305 from Selmar/patch-2
...
check correct `extensionsUsed` for serialization
2021-02-02 14:17:34 +09:00
Selmar
089b517943
check correct extensionsUsed for serialization
2021-02-01 19:24:41 +01:00
Syoyo Fujita
e5e9c6cbf6
Merge pull request #303 from syoyo/int-minmax-serialize
...
Issue #301 . Serialize accessor min/vax value as int
2021-01-22 03:40:52 +09:00
Syoyo Fujita
fa5a7902e1
Issue #301 . Serialize accessor min/vax value as int if its component type is an integer.
2021-01-21 20:33:11 +09:00
Syoyo Fujita
497a0abf78
Merge pull request #299 from DethRaid/patch-1
...
Add my project to the README
2020-12-23 15:46:32 +09:00
David Dubois
b05efb4733
Add my project to the README
...
My personal project uses tinygltf so i want to add it to the "Projects using TinyGLTF" section of the README
2020-12-22 22:32:59 -08:00
Syoyo Fujita
4f9dd612b8
Remove sampler.wrapR parameter(unused tinygltf extension). Fixes #287
...
Suppress clang `-Wdocumentation-unknown-command` warning.
2020-12-04 00:50:46 +09:00
Syoyo Fujita
6e219ab2f2
Add document for TinyGLTF::SetPreserveimageChannels.
v2.5.0
2020-10-31 19:40:33 +09:00
Syoyo Fujita
eeef0ec9e5
Add SetPreserveImageChannels feature(preserve image channels in stored image file. Only effective when using builtin ImageLoad function(STB image load)).
2020-10-31 19:35:55 +09:00
Syoyo Fujita
97a2d33e5c
Merge pull request #295 from syoyo/empty-material
...
Empty material
2020-10-23 04:05:19 +09:00
Syoyo Fujita
e45dcbd759
Fix build when using RapidJSON backend.
2020-10-22 22:38:56 +09:00
Syoyo Fujita
85962aee8a
Serialize empty JSON object when material has all default parameters. Fixes #294 .
2020-10-22 22:27:12 +09:00
Syoyo Fujita
ad063eb787
Merge branch 'master' of github.com:syoyo/tinygltf
2020-10-22 21:51:01 +09:00
Syoyo Fujita
349db74639
Merge pull request #290 from Coast-Coader/master
...
Minor change to the example of usage with opengl (basic example)
2020-09-29 14:28:47 +09:00
Eschemann
dc9f7efb8c
Deleted unnessecary stuff
2020-09-28 16:04:14 +02:00
Eschemann
9d7483d6db
Fixed segfault in example basic on inter graphics hd and corrected path to model
2020-09-28 15:50:45 +02:00
Syoyo Fujita
b51f8be2c5
Add note on sajson branch.
2020-08-09 21:18:28 +09:00
Syoyo Fujita
3f1d5ccbed
Fix inequality. Should allow 0 for bufferView.
v2.4.0
2020-07-15 13:52:39 +09:00
Syoyo Fujita
e46b66fe01
Merge branch 'master' of github.com:syoyo/tinygltf
2020-07-14 22:05:28 +09:00
Syoyo Fujita
3fb8ffd063
Renamed directory name.
2020-07-14 22:04:26 +09:00
Syoyo Fujita
f1b536d4a9
Add scene date for issue 280
2020-07-14 22:02:51 +09:00
Syoyo Fujita
05007ef21b
Merge pull request #281 from rbsheth/sparse_morph_fix
...
Fix sparse morph targets
2020-07-14 15:35:37 +09:00
Rahul Sheth
9c894f2d89
Fix sparse morph targets
2020-07-13 13:56:50 -04:00
Syoyo Fujita
243e062d0b
Merge pull request #278 from rbsheth/string_fix
...
Use std::string for GetKey function
2020-07-11 03:41:11 +09:00
Rahul Sheth
4909d0be84
Run clang-format
2020-07-10 14:27:46 -04:00
Rahul Sheth
17fc862965
Use std::string instead of const char* for GetKey function
2020-07-10 14:27:37 -04:00
Syoyo Fujita
e08443f9a7
Merge pull request #274 from daemyung/dxview
...
Add dxview
2020-07-04 16:48:08 +09:00
daemyung jang
67c66e0ba2
Add README.md for dxview
2020-07-04 09:24:00 +09:00
daemyung jang
6e9f10fa80
Add dxview
2020-07-04 01:29:41 +09:00
Syoyo Fujita
c2d2219173
Merge pull request #273 from daemyung/dxview
...
Initialize member variables
2020-07-03 15:38:46 +09:00
daemyung jang
d417d3c2d3
Initialize member variables
2020-07-03 13:27:39 +09:00
Syoyo
9dc3a7952d
Disable blank issue.
2020-06-26 02:01:16 +09:00
Syoyo Fujita
23aaa0544a
Update issue templates
2020-06-19 16:31:37 +09:00
Syoyo Fujita
b275837d50
Add comment on tinygltf::ExpandFilePath()
2020-06-06 18:13:15 +09:00
Syoyo Fujita
e05f9ca781
Use nullptr instead of NULL.
2020-06-06 17:11:50 +09:00
Syoyo Fujita
4d37c59117
Add regression test for PR-266.
2020-06-06 17:10:49 +09:00
cwbhhjl
e1fd746d21
fix an error occurred while expanding utf8 path
2020-06-04 10:40:38 +08:00
Syoyo Fujita
8febd91039
Add GitHub Actions badge.
2020-05-30 17:06:45 +09:00