GL_OES_stencil8

Supported Hardware

Series5, Series5XT, Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 1.x

Description

Despite OpenGL ES 1.x supporting Depth and Stencil testing in core, the specification doesn't define any stencil buffer representations, and does not mandate any stencil buffer support. This extension exposes an 8-bit stencil buffer for stencil operations.

Note

This functionality is core to OpenGL ES 2.0 and 3.0.

Registry Link

http://www.khronos.org/registry/gles/extensions/OES/OES_stencil8.txt

Example

// Create a 1024x1024, 8-bit stencil renderbuffer 
glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8_OES, 1024, 1024);