Can we use non-power-of-2 textures on OpenGL ES on Android?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 08:59:41

问题


Does anyone know if it is possible to use NPOT textures on Android's OpenGL ES renderer?


回答1:


Yes, for OpenGL ES 2.0, NPOT textures are supported in the core specification with some limitations in wrap modes, and 3D textures. The limitations are lifted when using the GL_OES_texture_npot extension.

For OpenGL ES 1.x, there is no extension to support NPOT textures.




回答2:


It appears that Froyo does has a NPOT implementation for OpenglES 1.1. However, so far I can not get UI to displace with proper aspectio. I think Froyo has issue with this implemenation, based on a quick review of the code. Gingerbread has updated a better design like Apple's method, but I can get Gingerbread to work yet. I am having very hard time making Android to work for HW ES 1.1 that needed NPOT work-around. Has any one out there got NPOT to work with HW Opengl 1.1 with Froyo/Gingerbread ?

Jimmcwin



来源:https://stackoverflow.com/questions/4593951/can-we-use-non-power-of-2-textures-on-opengl-es-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!