Skip to main content
4 events
when toggle format what by license comment
Feb 14, 2018 at 15:49 comment added Charanor @Madmenyo They are setting the projection matrix (read: shapeRenderer.setProjectionMatrix(stage.getViewport().getCamera().combined);). And that is exactly why it's the wrong size. They cannot use the size of the screen since that is not in sync with the size of the viewport unless the viewport is a ScreenViewport.
Feb 14, 2018 at 15:21 comment added Madmenyo Lucky call? You should actually give it the matrix you want to draw to. So if you have a camera for viewing the map and want to use shapeRenderer.setProjectionMatric(worldCamera.combined). If you want to use it on your fixed screen gui that's using the stage then getting the camera from the stage is perfectly fine. Just make sure you use resize() properly.
Feb 11, 2018 at 0:04 vote accept Morgan Usley
Feb 11, 2018 at 0:03 history answered Charanor CC BY-SA 3.0