Usage
Generate the makefile
or ninja
or vs project
by CMake.
For now, just build to a static library - libgltf.(lib/a/dylib)
.
Advance
Generate new code by the official glTF schema
You can update the c++11 source code by
jsonschematoc11
.
Generate the c++11 code:
- Run
tools/batch/update_parser_by_scheme.bat
(Windows) ortools/batch/update_parser_by_scheme.sh
(Unix/Linux/MacOS) - Build your version by CMake, Ninja or VisualStudio.
String encode
- default using utf8, char and std::string
- set LIBGLTF_WITH_UNICODE as TRUE in cmake command, if you want using unicode
- default using wchar_t and std::wstring
- set LIBGLTF_USING_CHAR16 as TRUE in cmake command, if you wnat using utf16, char16_t and std::u16string
- set LIBGLTF_USING_CHAR32 as TRUE in cmake command, if you want using utf32, char32_t and std::u32string