opengl es 2.0 and the stencil buffer

Posts: 196
Joined: 2009.02
Post: #1
Does opengl es 2.0 support the stencil buffer and it's operations?
Quote this message in a reply
Posts: 1,234
Joined: 2002.10
Post: #2
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Depth Buffer woes in OpenGL ES 2.0 Macmenace 5 11,873 Mar 8, 2010 10:45 AM
Last Post: Macmenace
  Do you activate depth buffer when doing 2D games and opengl es? riruilo 13 17,241 Apr 3, 2009 11:02 AM
Last Post: miq01
  Vertex buffer objects in OpenGL ES on iPhone ZooMan 5 9,960 Feb 4, 2009 07:00 PM
Last Post: ZooMan
  Stencil buffer Suman BK 1 3,399 Feb 4, 2009 07:38 AM
Last Post: AnotherJake
  OpenGL Flip buffer sometimes fail SunHpp 4 9,273 Jul 25, 2008 04:03 PM
Last Post: Frogblast