【发布时间】:2012-02-15 06:30:00
【问题描述】:
我正在尝试按如下方式加载纹理:
private Texture mTexture;
...
public Textures(final BaseGameActivity activity, final Engine engine) {
this.mTexture = new Texture(2048, 1024,
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
this.mBackgroundTextureRegion = TextureRegionFactory.createFromAsset(
this.mTexture, activity, "img/back.png", 0, 0);
this.mSwingBackTextureRegion = TextureRegionFactory.createFromAsset(
this.mTexture, activity, "img/player.png", 836, 0);
...
我想加载超过 200 个纹理。但是,我使用的当前方法太长了。
有没有更快的方法来完成它?
我在GLES1工作。
【问题讨论】:
标签: android textures andengine