View Full Version : Input from C code
02-27-2001, 11:07 AM
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?
02-27-2001, 01:40 PM
Hello again! http://www.opengl.org/discussion_boards/ubb/smile.gif
It seems like you are asking how to draw using OpenGL - if so, this site (www.opengl.org) contains hundreds of links to help you get started. You might try NeHe's site - he's got some good tutorials (http://nehe.gamedev.net/opengl.asp).
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.