Android 对andengine纹理载荷的理解
我试图理解下面的代码从安引擎加载纹理,我想知道什么是512 n 512(我知道它的高度和宽度),但大小480*320的图像Android 对andengine纹理载荷的理解,android,textures,andengine,Android,Textures,Andengine,我试图理解下面的代码从安引擎加载纹理,我想知道什么是512 n 512(我知道它的高度和宽度),但大小480*320的图像 public void onLoadResources() { this.mTexture = new Texture(512, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA); this.mSplashTextureRegion = TextureRegionFactory
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);
}
我在网上搜索了一下,但没有预期的解释。我不太了解图像和引擎,但这可能是因为很多LIB假设图像的维度是二的幂 在这里,您可以找到更好的解释:
.谢谢你,我不知道这条规则。:)我知道在PSP上编程时这真的很难;)