MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / main

Function main

engine/3rdparty/tinyobjloader/loader_example.cc:421–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421int main(int argc, char** argv) {
422 if (argc > 1) {
423 const char* basepath = "models/";
424 if (argc > 2) {
425 basepath = argv[2];
426 }
427 assert(true == TestLoadObj(argv[1], basepath));
428 } else {
429 // assert(true == TestLoadObj("cornell_box.obj"));
430 // assert(true == TestLoadObj("cube.obj"));
431 assert(true == TestStreamLoadObj());
432 assert(true ==
433 TestLoadObj("models/catmark_torus_creases0.obj", "models/", false));
434 }
435
436 return 0;
437}

Callers

nothing calls this directly

Calls 2

TestLoadObjFunction · 0.70
TestStreamLoadObjFunction · 0.70

Tested by

no test coverage detected