Skip to content

Instantly share code, notes, and snippets.

@skorezore
Created September 1, 2015 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skorezore/33b94053c9aeab3fa438 to your computer and use it in GitHub Desktop.
Save skorezore/33b94053c9aeab3fa438 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
#include "tiny_obj_loader.h"
int main()
{
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
std::string lel(tinyobj::LoadObj(shapes, materials, "test.obj"));
std::cout << shapes.at(0).mesh.indices.size() << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment