Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL ES GL_TEXTURE_RECTANGLE

Tags:

opengl-es

Does anyone know if GL_TEXTURE_RECTANGLE is supported in OpenGL ES? I am planning to use it for 2D graphics to support non-power-of-two images. My current implementation uses POT textures with alpha=0 padding is not doing well with stretched images. It is for OpenGL but we have plans of porting it to OpenGL ES as well.

like image 462
Cem Kalyoncu Avatar asked Jul 30 '11 12:07

Cem Kalyoncu


1 Answers

There used to be http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt which allows you to use non-power-of-two textures as a normal GL_TEXTURE_2D target. No need to use GL_TEXTURE_RECTANGLE.

This has been incorporated into OpenGL 2.0: See page 341 http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf

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

like image 183
whoplisp Avatar answered Oct 15 '22 05:10

whoplisp