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