这是质地应该在andengine使用的最大尺寸。我用
What is maximum size of texture that should be used in andengine. I used
this.diamondTexture = new Texture(2048, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
在设备装载时(HTC G1的T-Mobile),它显示黑屏。降低后的图像尺寸以及与此替换上面一行时
When loading in device(HTC G1 T-Mobile) it shows blank screen. After reducing the image size and when replacing the above line with this
this.diamondTexture = new Texture(1024, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
它的运行。什么问题?
Its running . Whats the problem ?
常用的方法 - 纹理最大尺寸为1024×1024。一些HI-终端设备可处理2048×2048的纹理,但是它`最好使用1024x1024的大小,如果你希望你的应用程序运行在几乎所有的设备。
Common approach - texture max size is 1024x1024. Some hi-end devices can handle 2048x2048 textures, but it`s better to use 1024x1024 size if you want your application to run on almost all devices.