【发布时间】:2011-11-05 20:57:05
【问题描述】:
在 andngine 中,我使用以下行代码定义了一个纹理:
private Texture mTexture;
这是我的 onLoadResource 函数:
public void onLoadResources() {
this.mTexture = new Texture(64, 64,
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
}
但是这段代码给出了错误,因为“import org.anddev.andengine.opengl.texture.Texture”类中的唯一构造函数具有以下签名:
public Texture(final PixelFormat pPixelFormat, final TextureOptions pTextureOptions, final ITextureStateListener pTextureStateListener);
你能帮我做什么吗?大多数教程,使用这样的东西:
new Texture(64, 64,
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
但我的,不起作用。我们将不胜感激。
问候。
【问题讨论】:
标签: android load textures andengine