@Override
public void render() {
float w = Gdx.graphics.getWidth();
float h = Gdx.graphics.getHeight();
Gdx.gl30.glClearColor(1, 1, 1, 1);
Gdx.gl30.glClear(Gdx.gl30.GL_COLOR_BUFFER_BIT);
batch.setProjectionMatrix(screenCamera.combined);
batch.begin();
batch.disableBlending();
float tw = backgroundTexture.getWidth();
float th = backgroundTexture.getHeight();
batch.draw(backgroundTexture, 0f, 0f, w, h, 0f, 0f, w / tw, h / th);
batch.enableBlending();
batch.end();
rigidBodiesScreen.render();
dynamicObjectsScreen.render();
batch.setProjectionMatrix(screenCamera.combined);
batch.begin();
infoLabel.draw(batch);
font.setColor(Color.WHITE);
font.draw(batch, String.format(Locale.US, "Zoom: %.0f %%", 100f / worldCamera.zoom), 10, 45);
font.draw(batch, "Fps: " + Gdx.graphics.getFramesPerSecond(), 10, 25);
batch.end();
}