Splash screen blurry LibGdx android 2.3

时间:2016-04-08 13:39:10

标签: android libgdx splash-screen

在旧版本的Android(GingerBread)上测试我在libgdx中编写的应用程序我注意到启动画面显示了所有类型的颜色。除此之外,其他一切工作正常。

public class Monkeyman extends ApplicationAdapter {

private SpriteBatch batch;
private GameStateManager gsm;
private ActionResolver actionResolver;


Monkeyman(ActionResolver actionResolver) {
    this.actionResolver = actionResolver;
}


@Override
public void create () {
    batch = new SpriteBatch();
    gsm = new GameStateManager();

    Gdx.gl.glClearColor(1, 0, 0, 1);
    gsm.push(new SplashState(gsm, actionResolver));


}

@Override
public void render() {

    Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
    gsm.update(Gdx.graphics.getDeltaTime());
    gsm.render(batch);
}

@Override
public void dispose() {
    super.dispose();
}
}

我在这样的渲染方法中绘制它:

sb.draw(background, 0, 0, WIDTH, HEIGHT);

它也适用于棉花糖。是不是因为GL的反面?

0 个答案:

没有答案