Anyone tried using the stencil buffer with cocos2d? I don't think it's part of opengl es 2.0, but it is only available on the 3gs from what I can tell. I was hoping I could detect the 3gs or greater device and make use of it in cocos2d
The effect I'd like to do is to have 2 backgrounds, and display one of them only when a stencil is applied on the screen. The only way I can think of doing it is using a stencil buffer, texture combiner (yeurk) or shaders. Since it doesn't seem to be very straight forward to add support for ogles 2.0 in cocos2d (anyone done it yet?) I'm stuck with option a or b. Unless someone else has a better suggestion.
Cheers!