Archived

This topic is now archived and is closed to further replies.

BeyondDeath

Switching from normal polygons to wireframe?

Recommended Posts

BeyondDeath    122
Just wondering how you can switch between drawing polygons,the wireframe and points. Ive seen it done but i cant figure it out. Thanks I know its probably in on of the tutorials but i just looked and i didnt see it...

Share this post


Link to post
Share on other sites
DeschutesCore    122
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
glPolygonMode(GL_FRONT_AND_BACK, GL_POINT)

The flag effect tutorial is the only one I can think of that explicitly shows these in use. I believe that's lesson 11, not 100% sure about that though.

You can also set different model modes at once. Try this one on for a neat effect.
glPolygonMode(GL_BACK, GL_FILL );
glPolygonMode(GL_FRONT, GL_LINE );

Jason

Edited by - DeschutesCore on March 18, 2001 3:23:47 PM

Share this post


Link to post
Share on other sites
Ben_    122
Hello

glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
glPolygonMode( GL_FRONT_AND_BACK, GL_POINT );

should do this job.

Greetings Ben

Share this post


Link to post
Share on other sites