检测图形卡和编译的openGL二进制文件是否支持在运行时不是2的幂的纹理的最佳方法是什么?
You can check with glGet
for ARB_texture_non_power_of_two or use GLEW.
Edit to reflect the comments: As of OpenGL 2.0 this feature is required and ARB_texture_non_power_of_two need not be defined. How to find the current version is described here . As Jerry points out: Depending on the GPU the feature might be implemented in software and the performance wont be great if you use textures with a non-power-of-two size.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.