Jump to content
  • Advertisement
Sign in to follow this  
Verminox

Quad Outlines

This topic is 4322 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

Is it possible to directly render just the outline of a quad, given four vertices? I'm using GLUT which has a few functions to render wire spheres, and wire cubes, but nothing for simple wire quads. Right now, I'm achieving the effect by drawing four quads of neglibible width (which looks like a thick line) as the four lines of the main quad that I wish to draw, thus giving it an outline effect, but I'm pretty sure that's not the right way to do it. Any help?

Share this post


Link to post
Share on other sites
Advertisement
Hello

Use the instruction glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); before the quad rendering. Then restore the standard behaviour with glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);

Kind regards

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!