Advertisement Jump to content
Sign in to follow this  
Funkyjive

OpenGL Test for stencil buffer writes

This topic is 3856 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!