A high-performance, header-only glTF parser and serializer library designed for C++20. This library is optimized for real-time applications, such as game development, where speed and low memory overhead are crucial.
A minimal and efficient C++20 glTF serializer/deserializer with a header-only design philosophy and a functional programming approach. This project includes:
- A basic glTF parser and serializer/deserializer.
- Example usage with a demo application.
- Support for cross-platform compatibility using modern C++ standards.
/YourProject
│
├── /include # Directory for all header files (header-only library code)
│ ├── cpp_mingltf.hpp # Main glTF parser and serializer/deserializer header
│ └── ... # Other utility headers or single-file libraries
│
├── /src # Source directory (only for example or demo applications)
│ └── main.cpp # Main application file demonstrating usage
│
├── /dep # Directory for third-party libraries
│ └── cpp_minjson.hpp # Header-only JSON library (Autodidac/CppMinimalJSON)
│
├── /models # Directory for example glTF models
│ └── Cube.gltf # Sample glTF file
│
├── CMakeLists.txt # CMake build file (if you are using CMake for your project)
│
└── README.md # Project README in Markdown format
To build the project using CMake:
mkdir build
cd build
cmake ..
make
Run the demo application:
./GltfDemo
This will load the example glTF model from the /models directory and display its node information.
Autodidac/CppMinimalJSON (header-only JSON library)