user1391058
user1391058

Reputation: 265

How to import BitmapTextureAtlas in Andengine?

i added this line.but it gives error.how to import it?

 import org.andengine.opengl.texture.atlas.TextureAtlas;

Upvotes: 0

Views: 932

Answers (1)

jmroyalty
jmroyalty

Reputation: 2527

TextureAtlas is an abstract class, try importing

import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas;

or

import org.andengine.opengl.texture.atlas.bitmap.BuildableBitmapTextureAtlas;

depending on which one you are using

If you using Eclipse and it is configured properly, you should be able to just delete that line and Eclipse will add the correct import statements - at least it does on my system.

Upvotes: 2

Related Questions