Jump to content
  • Advertisement
Sign in to follow this  
aeltani

GLUT_DEPTH

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

Advertisement
Not entirely sure on your question, but in this example:

glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);

we initialise openGl rendering context with depth buffer, double buffering and RGBA pixel type. So you just pass in a bit mask of the type of window you want, you can add more to the above like GLUT_ALPHA for a window with desitnation alpha, and GLUT_STENCIL for a window stencil buffer.

here is a tutorial on glut, will prbably have more information you may need.

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!