diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-05 14:51:04 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-05 14:51:04 +0100 |
commit | 98f4cf22523ded23f371d4cee4a3e8c1363a037c (patch) | |
tree | ce4ef3fd86310c3c538425da7c195674518f2178 /core | |
parent | 7cf4c3e96c504d4eb2de3ca7f4705d8a0963c985 (diff) | |
download | RustAndDust-98f4cf22523ded23f371d4cee4a3e8c1363a037c.zip RustAndDust-98f4cf22523ded23f371d4cee4a3e8c1363a037c.tar.gz |
MenuCamera: screen -> window
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/MenuCamera.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/MenuCamera.java b/core/src/ch/asynk/tankontank/screens/MenuCamera.java index 21f5a48..ec5f48a 100644 --- a/core/src/ch/asynk/tankontank/screens/MenuCamera.java +++ b/core/src/ch/asynk/tankontank/screens/MenuCamera.java @@ -12,7 +12,7 @@ public class MenuCamera extends OrthographicCamera private float virtualAspect; private final Rectangle virtual; - private final Rectangle screen; + private final Rectangle window; private final OrthographicCamera uiCamera; public MenuCamera(int cx, int cy, int width, int height) @@ -21,8 +21,8 @@ public class MenuCamera extends OrthographicCamera this.virtual = new Rectangle(); this.virtual.set(cx, cy, width, height); this.virtualAspect = (virtual.width / virtual.height); - this.screen = new Rectangle(); - this.screen.set(0, 0, 0, 0); + this.window = new Rectangle(); + this.window.set(0, 0, 0, 0); this.position.set(virtual.x, virtual.y, 0f); this.uiCamera = new OrthographicCamera(); } @@ -40,10 +40,10 @@ public class MenuCamera extends OrthographicCamera viewportHeight = (virtual.width / aspect); } - screen.width= screenWidth; - screen.height= screenHeight; + window.width= screenWidth; + window.height= screenHeight; - Gdx.gl.glViewport((int)screen.x, (int)screen.y, (int)screen.width, (int)screen.height); + Gdx.gl.glViewport((int)window.x, (int)window.y, (int)window.width, (int)window.height); update(true); uiCamera.setToOrtho(false, screenWidth, screenHeight); @@ -51,12 +51,12 @@ public class MenuCamera extends OrthographicCamera public float getScreenWidth() { - return screen.width; + return window.width; } public float getScreenHeight() { - return screen.height; + return window.height; } public Vector3 uiUnproject(Vector3 v) |