summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-03 15:40:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-03 15:40:59 +0200
commit785471d3e46ff7f8143b19f13dee4f0bc072e721 (patch)
tree615f1ba087d993c7b7ac0eba7a7ffbbb2c349569
parent589938042a1a77babf3f23482e03275949ea789a (diff)
downloadgdx-boardgame-785471d3e46ff7f8143b19f13dee4f0bc072e721.zip
gdx-boardgame-785471d3e46ff7f8143b19f13dee4f0bc072e721.tar.gz
Camera : applyMapViewport() -> applyBoardViewport()
-rw-r--r--core/src/ch/asynk/gdx/tabletop/Camera.java4
-rw-r--r--test/src/ch/asynk/gdx/tabletop/test/BoardScreen.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/gdx/tabletop/Camera.java b/core/src/ch/asynk/gdx/tabletop/Camera.java
index 4f51375..bcee9e1 100644
--- a/core/src/ch/asynk/gdx/tabletop/Camera.java
+++ b/core/src/ch/asynk/gdx/tabletop/Camera.java
@@ -114,7 +114,7 @@ public class Camera extends OrthographicCamera
Matrix4.inv(hudInvProjMatrix.val);
}
- public void applyMapViewport()
+ public void applyBoardViewport()
{
HdpiUtils.glViewport((int)viewport.x, (int)viewport.y, (int)viewport.width, (int)viewport.height);
}
@@ -124,7 +124,7 @@ public class Camera extends OrthographicCamera
if (hudInBoard)
HdpiUtils.glViewport(0, 0, screenWidth, screenHeight);
else
- applyMapViewport();
+ applyBoardViewport();
}
public void centerOnWorld()
diff --git a/test/src/ch/asynk/gdx/tabletop/test/BoardScreen.java b/test/src/ch/asynk/gdx/tabletop/test/BoardScreen.java
index d52670c..8e605bf 100644
--- a/test/src/ch/asynk/gdx/tabletop/test/BoardScreen.java
+++ b/test/src/ch/asynk/gdx/tabletop/test/BoardScreen.java
@@ -170,7 +170,7 @@ public class BoardScreen extends AbstractScreen
Gdx.gl.glClearColor(0, 0, 0, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
- cam.applyMapViewport();
+ cam.applyBoardViewport();
batch.setProjectionMatrix(cam.combined);
batch.begin();
board.draw(batch);