From 4eebbcea2d8ec336d937564bf6a4d0783d4feff1 Mon Sep 17 00:00:00 2001 From: Emux Date: Thu, 21 Jul 2016 13:44:51 +0300 Subject: [PATCH] GLViewport: fix documentation, #87 --- vtm/src/org/oscim/renderer/GLViewport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vtm/src/org/oscim/renderer/GLViewport.java b/vtm/src/org/oscim/renderer/GLViewport.java index 6094d46e..44f8bf62 100644 --- a/vtm/src/org/oscim/renderer/GLViewport.java +++ b/vtm/src/org/oscim/renderer/GLViewport.java @@ -68,7 +68,8 @@ public class GLViewport extends Viewport { } /** - * Set MVP offset in screen pixel coordinates + * Set MVP so that coordinates are in screen pixel coordinates with 0,0 + * being center */ public void useScreenCoordinates(int width, int height, Position position, float xOffset, float yOffset, float scale) { float invScale = 1f / scale;