In andngine , I defined a texture, using the following line code:
private Texture mTexture;
And here is my onLoadResource function:
public void onLoadResources() {
this.mTexture = new Texture(64, 64,
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
}
but this code gives an error, because the only constructor in "import org.anddev.andengine.opengl.texture.Texture" class has the following signature:
public Texture(final PixelFormat pPixelFormat, final TextureOptions pTextureOptions, final ITextureStateListener pTextureStateListener);
Would you please help me what to do? Most tutorials, used something like this:
new Texture(64, 64,
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
But mine, does not work. Your help would be appreciated.
Regards.