opengl es 2.0 and the stencil buffer

Member
Posts: 194
Joined: 2009.02
Post: #1
Does opengl es 2.0 support the stencil buffer and it's operations?
Quote this message in a reply
Sage
Posts: 1,232
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 7,644 Mar 8, 2010 10:45 AM
Last Post: Macmenace
  Do you activate depth buffer when doing 2D games and opengl es? riruilo 13 9,023 Apr 3, 2009 11:02 AM
Last Post: miq01
  Vertex buffer objects in OpenGL ES on iPhone ZooMan 5 7,437 Feb 4, 2009 07:00 PM
Last Post: ZooMan
  Stencil buffer Suman BK 1 2,166 Feb 4, 2009 07:38 AM
Last Post: AnotherJake
  OpenGL Flip buffer sometimes fail SunHpp 4 6,829 Jul 25, 2008 04:03 PM
Last Post: Frogblast