【发布时间】:2011-12-27 14:03:34
【问题描述】:
我试图从 andengine 了解下面的代码来加载纹理,我想知道 512 n 512 是什么(我知道它的高度和宽度),但图像大小为 480 * 320。
public void onLoadResources() {
this.mTexture = new Texture(512, 512,
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
this.mSplashTextureRegion = TextureRegionFactory
.createFromAsset(this.mTexture,this, "image.png", 0, 0);
this.mEngine.getTextureManager().loadTexture(this.mTexture);
}
我在网上搜索但没有预期的解释。
【问题讨论】:
标签: android textures andengine