So, I'm using LibGDX for my upcoming App.
I use a FitViewport to ensure the 16:9 aspect ratio. So players with other aspect ratios than 16:9 will have black bars at sites.
What is the best way, to draw a screen filling background image, that also covers the area, where the black bars would be?
camera = new OrthographicCamera();
viewport = new FitViewport(WIDTH, HEIGHT, camera);
viewport.apply();
camera.position.set(WIDTH / 2, HEIGHT / 2, 0);
camera.update();
Thats how I set up my camera/viewport currently.
I then draw stuff on it with a SpriteBatch.
Gdx.gl.glClearColor(1, 1, 1, 1);
That's how I currently at least change the color of the black bars, to any RGB color.