Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appgurueu/tiniergltf
A safe, modern, tiny glTF loader for C++ 17
https://github.com/appgurueu/tiniergltf
Last synced: 8 days ago
JSON representation
A safe, modern, tiny glTF loader for C++ 17
- Host: GitHub
- URL: https://github.com/appgurueu/tiniergltf
- Owner: appgurueu
- Created: 2024-01-12T16:18:45.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-08-18T11:58:56.000Z (4 months ago)
- Last Synced: 2024-10-28T20:57:50.059Z (about 2 months ago)
- Language: C++
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# TinierGLTF
A safe, modern, tiny glTF loader for C++ 17.
What this is:
* A tiny glTF deserializer which maps JSON objects to appropriate C++ structures.
* Intended to be safe for loading untrusted input.
* Slightly tailored to the needs of [Minetest](https://github.com/minetest/minetest).What this doesn't and shouldn't do:
* Serialization
* Loading images
* Resolving resources
* Support glTF extensions## TODOs
- [ ] Add GLB support.
- [ ] Add further checks according to the specification.
- Everything in the JSON schema (+ indices and misc. stuff) is already validated.
Much of the code was generated by a Lua script from the JSON schemata.
- [ ] Consider base64 rewrite.## License
`tiniergltf.hpp` was written by Lars Müller and is licensed under the MIT license:
> Copyright 2024 Lars Müller
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.The base64 library used is licensed as follows:
> base64.cpp and base64.h
>
> Copyright (C) 2004-2008 René Nyffenegger
> Modified by the Minetest Contributors.
>
> This source code is provided 'as-is', without any express or implied
> warranty. In no event will the author be held liable for any damages
> arising from the use of this software.
>
> Permission is granted to anyone to use this software for any purpose,
> including commercial applications, and to alter it and redistribute it
> freely, subject to the following restrictions:
>
> 1. The origin of this source code must not be misrepresented; you must not
> claim that you wrote the original source code. If you use this source code
> in a product, an acknowledgment in the product documentation would be
> appreciated but is not required.
>
> 2. Altered source versions must be plainly marked as such, and must not be
> misrepresented as being the original source code.
>
> 3. This notice may not be removed or altered from any source distribution.
>
> René Nyffenegger [email protected]## Bug Bounty
I offer a reward of one (1) virtual headpat per valid bug report.