Example #1
0
  @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();
  }
Example #2
0
  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);
  }
Example #3
0
 @Override
 public void dispose() {
   ui.dispose();
 }
Example #4
0
 @Override
 public void resize(int width, int height) {
   ui.resize(width, height);
 }