I'm pretty new to direct x and c++, I have a problem with loading .obj files.
I think the problem is with creating vertices and indecies.
list<vertex> FinalVertices;
list<unsigned long> Indecies;
for (int i = 0; i < Faces.size(); i++)
{
for (int j = 0; j < Faces.size(); j++)
{
if (Faces[i] == Faces[j])
{
cout << 'b' << endl;
if (i == j)
{
FinalVertices.push_back(Faces[i]);
Indecies.push_back(j);
}
goto a;
}
}
a:
cout << ' ';
}