how to draw triangle mesh?

well, i don’t know how to solve this problem.
I need to read *.dxf file and get x,y,z coordinates of vertices.
I have done it. now i get some number of veritices (for example: pyramid 6 vertices). all of that are vertices of triangle becouse the model is store in dxf as triagle mesh. Now i don’t know how to draw that triangle mesh in opengl.

please help me!


There are a lot of example programs out there that would help you, I typed “OpenGL dxf” in Google, and got a number of different options. The first one on the list was which seemed like a rather good option for you to check out.