/** * @param x * @param y * @param scale * @deprecated use the viewport transform in {@link #getViewportTranform()} */ public void setCamera(float x, float y, float scale) { viewportTransform.setCamera(x, y, scale); }
/** * @param x * @param y * @param scale * @deprecated use the viewport transform in {@link #getViewportTranform()} */ public void setCamera(float x, float y, float scale) { viewportTransform.setCamera(x, y, scale); }
/** * Sets the camera center position and scale */ public void setCamera(Vec2 worldCenter, float scale) { transform.setCamera(worldCenter.x, worldCenter.y, scale); }
public TestbedCamera(Vec2 initPosition, float initScale, float zoomScaleDiff) { Preconditions.checkArgument(zoomScaleDiff > 0, "Zoom scale %d must be > 0", zoomScaleDiff); this.transform = new OBBViewportTransform(); transform.setCamera(initPosition.x, initPosition.y, initScale); this.initPosition.set(initPosition); this.initScale = initScale; upScale = Mat22.createScaleTransform(1 + zoomScaleDiff); downScale = Mat22.createScaleTransform(1 - zoomScaleDiff); }
/** * @param x * @param y * @param scale * @deprecated use the viewport transform in {@link #getViewportTranform()} */ public void setCamera(float x, float y, float scale) { viewportTransform.setCamera(x, y, scale); }
/** * @param x * @param y * @param scale * @see IViewportTransform#setCamera(float, float, float) */ public void setCamera(float x, float y, float scale){ viewportTransform.setCamera(x,y,scale); }
/** * @param x * @param y * @param scale * @deprecated use the viewport transform in {@link #getViewportTranform()} */ public void setCamera(float x, float y, float scale) { viewportTransform.setCamera(x, y, scale); }