Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Test for stencil buffer writes

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

My question is concerned with usage of the stencil buffer. My game relies on recursive use of the stencil buffer and I would like to optimize it so as to not pass some shapes to opengl that I already know would fail the stencil test in any later recursive loops. Bassically what I want is to find out if the contents of all parts of the stencil buffer are below a given number. Or I would like to know if there is a way to determine if the stencil buffer gets modified during a certain section of the drawing code where the buffer is enabled. Thank you.

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!