View Full Version : wireframe

11-24-2005, 08:49 PM

I want to make a simple wireframe model
from an OFFmodel file I just don't know
how to start and I've looked for info on this
topic I know how to initialize a Glut program
and how to draw lines and such, Can anyone
please give me a hint how to deal with this

OG Regards

PSThe setting is Unix, C, GLUTDS

11-24-2005, 09:57 PM
I don't know anything about OFF, it's irrevelant to OpenGL, but switching to wireframe
is very easy:

glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
glDisable( GL_LIGHTING );
glColor3f( 0.0f, 0.0f, 0.0f ); // draw black lines

You don't have to change your core routines how the model is drawn, just
change the poly mode.