Input from C code

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

Hello again!

It seems like you are asking how to draw using OpenGL - if so, this site ( contains hundreds of links to help you get started. You might try NeHe’s site - he’s got some good tutorials (

If you’ve got all of the tirangle information (vertices, colors, etc.) in C code already, then all you have to do is call the appropriate OpenGL functions to draw it to the screen - it’s not so much a mater of “inputting” the information to GL as simply drawing it.