@Override public void render(float delta) { Gdx.gl.glClearColor(0, 0, 0.2f, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); camera.update(); ui.draw(); }
public MainMenuScreen(final GdxTest02 game) { this.game = game; camera = new OrthographicCamera(); camera.setToOrtho(false, game.VIRTUAL_WIDTH, game.VIRTUAL_HEIGHT); ui = new MainMenuScreenUI(); ui.setupUi(this); }
@Override public void dispose() { ui.dispose(); }
@Override public void resize(int width, int height) { ui.resize(width, height); }