开发者

OpenGL ES GL_TEXTURE_RECTANGLE

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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜