LibGDX, OpenGL 2.0 and textures having to be powers of two?

放肆的年华 提交于 2019-12-07 20:19:28
Xoppa

The strict power of two (POT) size requirement was only for OpenGL ES 1.x. libGDX doesn't support this version of OpenGL ES anymore since libGDX version 1.0.0. So there isn't a strict POT requirement for textures anymore.

However, depending on the GPU, some features (e.g. texture wrapping) might not be supported for non-POT texture sizes. Also, in practice, a non-POT sized texture might (will) use the same amount of memory as the nearest bigger POT size.

Because of these reasons and since multiple textures should be packed onto an atlas anyway, it is strongly advised to always use POT sized textures.

See also: Is there any way to ignore libgdx images Limitation? (images must be power of two)

If that doesn't answer your question, then please consider rephrasing your question and explain what you mean with "they do not work".

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