有没有办法查询android上的OpenGL ES实现是否支持两种纹理的非幂?
答案 0 :(得分:0)
我之前在扩展字符串中看到过这个报告为“GL_ARB_texture_non_power_of_two”。例如。如果你打电话给模拟器:
gl.glGetString(GL10.GL_EXTENSIONS)
gl是你的GL10实例,那么你得到:
GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
列出了该扩展名,因此仿真器支持两种大小纹理的无功能。