On OpenGL ES 2.0 API, I could use glGet*
function with GL_STENCIL_BITS
symbol to get current stencil buffer's bit-size.
What is the equivalent of the symbol on desktop OpenGL API? I am targeting OpenGL 3.x API or later.
I have not worked with OSX, but in GL a separate stencil is going away, and a packed depth+stencil is to be used. You can use glGetIntegerv with GL_MAX_DEPTH_TEXTURE_SAMPLES as in http://www.opengl.org/sdk/docs/man/html/glGet.xhtml .
Also refer to OpenGL: Acquiring only a stencil buffer and no depth buffer?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.