I am trying to set up an ortho view with 0, 0 in the top left using this code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| GameStateManager.create(); TankGameState currentState = new TankGameState(display); currentState.setActive(true); GameStateManager.getInstance().attachChild(currentState); cam = display.getRenderer().createCamera(display.getWidth(), display.getHeight()); cam.setParallelProjection( true ); cam.setFrustum( -10, 10, 0, 800, 0, 600); cam.update(); display.getRenderer().setCamera( cam ); |
I have tried to do it with setFrustrum(), setViewPort() and set the camera attributes. None of them change anything. 0, 0 remains at the bottom left of the screen. I tried to search to see if anyone had a similar problem, but couldn't find anything. Can anyone tell me what I am missing?