【问题标题】:Can we dynamically check if npot is supported in android?我们可以动态检查android是否支持npot吗?
【发布时间】:2010-02-20 00:44:14
【问题描述】:

有没有办法查询android上的OpenGL ES实现是否支持两个纹理的非幂次?

【问题讨论】:

标签: android


【解决方案1】:

我之前在扩展字符串中看到过这个报告为“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

其中列出了该扩展,因此模拟器支持非两种大小的纹理。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-28
    • 2010-09-11
    • 1970-01-01
    • 1970-01-01
    • 2016-12-29
    • 2013-05-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多