giving input from external file

I want to use my c code which has the triangulation of an object and the color info each triangles,
how to input this code into gl and render it?
how can I capture animation from gl code?

You’re probably better off posting this in the beginners’ forum - are you familiar at all with GL, or are you just starting?

As far as “capturing” animation, I create a series of bitmaps from the framebuffer and run them through an mpeg encoder.

Chris