Jump to content
  • Advertisement

Archived

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

BeyondDeath

Switching from normal polygons to wireframe?

This topic is 6426 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!