Virtual screen size with libgdx and GLES 2
- by David Saltares Márquez
I've been trying to use a virtual screen size for my libgdx desktop-android game. I'd like to always use a 16:9 aspect ratio but with a virtual screen size so everything would adapt automatically depending on the device size.
This post illustrates the process pretty well but my game crashes when camera.apply(Gdx.Gl10) is called. This is because…