opengl es 2.0 and the stencil buffer
Does opengl es 2.0 support the stencil buffer and it's operations?
Both ES1.1 and ES2.0 support stencil operations.
However the availability of a stencil buffer is renderer-dependent. On iPhone OS platforms:
* MBX based devices do not support stencil
* SGX based devices (and the iPhone simulator, in OS 3.x) support stencil in both ES1.1 and ES2.0
Specifically, the ability to use stencil is controlled by the FBO configurations you are allowed to create (because EAGL is entirely FBO-centric.) So if you are able to create a renderbuffer in STENCIL8 or DEPTH24_STENCIL8 formats and get a complete FBO with it, stencil works. These capabilities are advertised in the extension string by OES_stencil8 and OES_packed_depth_stencil.
However the availability of a stencil buffer is renderer-dependent. On iPhone OS platforms:
* MBX based devices do not support stencil
* SGX based devices (and the iPhone simulator, in OS 3.x) support stencil in both ES1.1 and ES2.0
Specifically, the ability to use stencil is controlled by the FBO configurations you are allowed to create (because EAGL is entirely FBO-centric.) So if you are able to create a renderbuffer in STENCIL8 or DEPTH24_STENCIL8 formats and get a complete FBO with it, stencil works. These capabilities are advertised in the extension string by OES_stencil8 and OES_packed_depth_stencil.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Depth Buffer woes in OpenGL ES 2.0 | Macmenace | 5 | 5,940 |
Mar 8, 2010 10:45 AM Last Post: Macmenace |
|
| Do you activate depth buffer when doing 2D games and opengl es? | riruilo | 13 | 7,086 |
Apr 3, 2009 11:02 AM Last Post: miq01 |
|
| Vertex buffer objects in OpenGL ES on iPhone | ZooMan | 5 | 6,711 |
Feb 4, 2009 07:00 PM Last Post: ZooMan |
|
| Stencil buffer | Suman BK | 1 | 1,933 |
Feb 4, 2009 07:38 AM Last Post: AnotherJake |
|
| OpenGL Flip buffer sometimes fail | SunHpp | 4 | 6,088 |
Jul 25, 2008 04:03 PM Last Post: Frogblast |
|

