GL_OES_point_sprite#
Supported Hardware#
Series5, Series5XT, Series6, Series6XE, Series6XT
Valid APIs#
OpenGL ES 1.x
Description#
This extension extends the standard functionality of OpenGL points to allow more flexible rendering than otherwise provided. For a core point object, OpenGL ES specifies that texture coordinates are identical across the entire body of the point, and it is then anti-aliased to fade out. To work around this, developers often use a quad with an alpha blended/tested texture to allow the full range of a texture to be expressed. When in use, this extension disables the anti-aliasing on the point, and instead interpolates the texture coordinates provided over the entire body of the point, allowing a point to be effectively textured to represent a sprite.
Note#
This functionality is core to OpenGL ES 2.0 and 3.0.
Registry Link#
http://www.khronos.org/registry/gles/extensions/OES/OES_point_sprite.txt
Example#
// Enable point sprite drawing
glEnable(GL_POINT_SPRITE_OES);
// Set the texture environment to use point sprite coordinate replace to true, so that texture
// coordinates are interpolated automatically across the rendered point, rather than using a
// single coordinate.
glTexEnvi(GL_POINT_SPRITE_OES, GL_COORD_REPLACE_OES, GL_TRUE);
// Draw some point sprites at the locations specified in
glDraw(GL_POINTS, ...);