Hello

i have a problem with the stencil buffer. How can i specify how much bits i want to use?

and how can i read this?

i think i can do this with glReadPixel, and the format GL_STENCIL_INDEX, but i don't know if i read only this pixel i had specify.

thanks

helda