updated the LoadOBJ usage documentation. the less than/greater than < > signs now appear in the github pages
This commit is contained in:
10
index.html
10
index.html
@@ -73,14 +73,12 @@
|
||||
<p>First, load your mesh from file, storing the shapes and materials separately.</p>
|
||||
|
||||
<pre><code>std::string inputfile = "cornell_box.obj";
|
||||
std::vector<tinyobj::shape_t> shapes;
|
||||
std::vector<tinyobj::material_t> materials;
|
||||
std::vector<tinyobj::shape_t> shapes;
|
||||
std::vector<tinyobj::material_t> materials;
|
||||
std::string err;
|
||||
|
||||
std::string err = tinyobj::LoadObj(shapes, materials, inputfile.c_str());
|
||||
|
||||
if (!err.empty()) {
|
||||
if(!tinyobj::LoadObj(shapes, materials, err, inputfile.c_str()))
|
||||
std::cerr << err << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
std::cout << "# of shapes : " << shapes.size() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user