• Advertisement

Archived

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

Switching from normal polygons to wireframe?

This topic is 6184 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
damn, and i did it the harder way

scott

"If you try and don''t succeed, destroy all evidence that you tried."

Share this post


Link to post
Share on other sites

  • Advertisement