|
@@ -8,25 +8,25 @@ import com.badlogic.gdx.utils.ScreenUtils;
|
|
|
/** {@link com.badlogic.gdx.ApplicationListener} implementation shared by all platforms. */
|
|
|
public class Main extends ApplicationAdapter {
|
|
|
private SpriteBatch batch;
|
|
|
- //private Texture image;
|
|
|
+ private Texture image;
|
|
|
|
|
|
@Override
|
|
|
public void create() {
|
|
|
batch = new SpriteBatch();
|
|
|
- //image = new Texture();
|
|
|
+ image = new Texture("libgdx.png");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void render() {
|
|
|
ScreenUtils.clear(0.15f, 0.15f, 0.2f, 1f);
|
|
|
batch.begin();
|
|
|
-// batch.draw(image, 140, 210);
|
|
|
+ batch.draw(image, 140, 210);
|
|
|
batch.end();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void dispose() {
|
|
|
batch.dispose();
|
|
|
-// image.dispose();
|
|
|
+ image.dispose();
|
|
|
}
|
|
|
}
|