// for VC // MORE FOR VC @Override public void render() { // Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); batch.begin(); if (ScreenManager.getCurrentScreen() != null) { ScreenManager.getCurrentScreen().render(batch); } if (ScreenManager.getCurrentScreen() != null) { ScreenManager.getCurrentScreen().update(); } batch.end(); }
public void resize(int width, int height) { if (ScreenManager.getCurrentScreen() != null) { ScreenManager.getCurrentScreen().resize(width, height); } }
public void dispose() { if (ScreenManager.getCurrentScreen() != null) { ScreenManager.getCurrentScreen().dispose(); } batch = new SpriteBatch(); }