2010-02-20 81 views
1

有没有一种方法来查询android上的OpenGL ES实现是否支持两种纹理的非功率?我们可以动态检查android是否支持npot吗?

+0

我意识到这个问题后来,但它有一个接受者的答案 - 因此愚蠢。 http://stackoverflow.com/questions/5705753/android-opengl-es-loading-a-non-power-of-2-texture – 2012-02-07 15:38:33

回答

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 

其具有延伸上市,所以模拟器支持两种尺寸的纹理的非权力。

相关问题