如何找到不同手机的最大纹理尺寸? [英] How can I find the maximum texture size for different phones?

查看:246
本文介绍了如何找到不同手机的最大纹理尺寸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出原始摩托罗拉Droid的最大纹理尺寸.我相信G1的最大纹理大小为512,但是如果我能找到更正式的方法来建立合适的拼贴系统,那将是很好的选择.

I'm trying to find out the maximum texture size for the original Motorola Droid. I believe the G1 has a maximum 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.

推荐答案

您可以使用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]);

这篇关于如何找到不同手机的最大纹理尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆