v 0.0 1.0 0.0
v -1.0 -1.0 -1 0
v 1.0 -1.0 -1.0
v 0 -1.0 1.0
f 2 4 3
f 4 2 1
f 3 1 2
f 1 3 4
I have an obj file that describes a tetrahedron polygon.
I've finished coding to parse those data and save them into arrays.
To use the vertex values, I simply had to use glVertex3f(x, y, z)
But I don't know what I should do to use the face values.
I tried to follow some tutorials, but all of them seem very different from each other and it's really confusing.
glVertex3fand similar functions are using old+deprecated OpenGL. In particular, it's easy to render this face format with indexed rendering.