So I decided I should give parsing and loading a simple cube from a OBJ-file a try. The parsing itself seem to work well enough, and right now I only try to make the position element of the vertices work. But I can't seem to get the cube to be drawn like it should, it even looks like it doesn't use all the indices. After staring at this problem for too long and not seeing what's wrong, maybe someone here can help. Anyway, thanks in advance.
Mesh* OBJFileParser::LoadMeshFromOBJFile(const char* filename)
{
std::ifstream in(filename, std …