OpenGL ES GL_TEXTURE_RECTANGLE [英] OpenGL ES GL_TEXTURE_RECTANGLE
问题描述
有人知道OpenGL ES是否支持GL_TEXTURE_RECTANGLE吗?我打算将其用于2D图形,以支持非2的幂次方图像.我当前的实现使用Alpha = 0填充的POT纹理对于拉伸图像效果不佳.它适用于OpenGL,但我们也计划将其移植到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.
推荐答案
过去 http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt 这使您可以将非2的幂次方的纹理用作普通的GL_TEXTURE_2D目标. 无需使用GL_TEXTURE_RECTANGLE.
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.
这已合并到OpenGL 2.0中: 请参阅第341页 http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
This has been incorporated into OpenGL 2.0: See page 341 http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
而且我相信它也应该可以在OpenGL ES中使用: 参见第83页 http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.25.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
这篇关于OpenGL ES GL_TEXTURE_RECTANGLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!