Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
tiny_gltf.h
✓ #include <tiny_gltf.h>
Load a glTF 2.0 model from file.
#include <tiny_gltf.h>
#include <iostream>
int main() {
tinygltf::Model model;
tinygltf::TinyGLTF loader;
std::string err, warn;
bool ret = loader.LoadASCIIFromFile(&model, &err, &warn, "model.gltf");
if (!warn.empty()) std::cout << "Warning: " << warn << std::endl;
if (!err.empty()) std::cerr << "Error: " << err << std::endl;
if (!ret) return 1;
std::cout << "Loaded glTF model with " << model.meshes.size() << " meshes." << std::endl;
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.