一个我是怎么找到的最大纹理大小不同的手机?我是、纹理、大小、不同

2023-09-12 07:57:07 作者:厌战

我试着去找出最大纹理尺寸为原来的摩托罗拉Droid。我相信G1是512最大纹理尺寸,但是如果有一个更正式的方式我可以找出这样我就可以建立一个合适的瓦片系统就好了。谢谢你。

Im trying to find out the max texture size for the original motorola droid. I believe the G1 has a max texture size of 512, but it would be nice if there was a more official way i could find out so i can build a proper tile system. Thank you.

推荐答案

您可以使用glGetIntegerv要求最大纹理大小:

You can request the max texture size using glGetIntegerv:

int[] maxTextureSize = new int[1];
gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);
Log.i("glinfo", "Max texture size = " + maxTextureSize[0]);