GL_OES_byte_coordinates#

Supported Hardware#

Series5, Series5XT, Series6, Series6XE, Series6XT

Valid APIs#

OpenGL ES 1.x

Description#

This extension allows users to pass byte values as texture coordinates and vertex positions in OpenGL ES 1.x, which are otherwise not allowed by the API. Byte sized data has the advantage of consuming less bandwidth than larger types and can be useful for certain scenes.

Note#

This functionality is superseded by programmable shader support in subsequent versions of OpenGL ES.

Examples#

// Input byte coordinates
GLbyte coordinates[] =
{
    0, 255, 0,
    255, 255, 0,
    255, 0, 0,
};
// Give the coordinates to OpenGL ES
glVertexPointer(3, GL_BYTE, 0, coordinates);