GL_OES_texture_mirrored_repeat

Supported Hardware

Series5, Series5XT, Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 1.x

Description

This extension adds another wrap mode to OpenGL ES, similar to GL_REPEAT, but the image is flipped each time it is repeated. For horizontal repeats, the texture is flipped horizontally, and for vertical repeats it is flipped vertically. The benefit of this is that it means tiled textures can be created without having to worry about making the edges match up.

Note

This extension is part of the OpenGL ES 1.x Extension Pack Specification and is core functionality in OpenGL ES 2.0 and 3.0.

Registry Link

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

Example

// Set the wrap mode for a texture to mirrored repeat 
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_MIRRORED_REPEAT); 
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_MIRRORED_REPEAT);