OpenGL ES GL_TEXTURE_RECTANGLE

Does anyone know if GL_TEXTURE_RECTANGLE is supported in OpenGL ES? I plan to use it for 2D graphics to support images without power of two. My current implementation uses POT textures with alpha fill = 0, doesn't work very well with stretched images. This is for OpenGL, but we have plans to port it to OpenGL ES.

+4
source share
1 answer

Formerly http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt which allows you to use textures without the power of two, as a normal GL_TEXTURE_2D target. No need to use GL_TEXTURE_RECTANGLE.

This was included in OpenGL 2.0: See page 341 http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf

And I believe that it should also work in OpenGL ES: See page 83 http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.25.pdf

+4
source

All Articles