SketchFetch
is a C++ Wrapper for Sketchfab. It can:
- Search for models using every Parameter provided by Sketchfab
- Handle authentication
- Download models and extract them
To start a simple search, a SketchFetch object is created. An optional result type is returned. You can iterate over the results.
SketchFetch fetcher{};
if(auto results = fetcher.search({.q = "Bunny"})){
for(auto &res: *results){
fmt::print("{}\n",res); //Print the whole result object
fmt::print("{}\n",res.name) //Print only the name
}
}
More detailed examples are in the PROGRAMMING document.
See the BUILDING document.