OpenGL ES GL_TEXTURE_RECTANGLE

前端 未结 1 567
天命终不由人
天命终不由人 2021-01-05 14:32

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 use

相关标签:
1条回答
  • 2021-01-05 14:56

    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 讨论(0)
提交回复
热议问题