/** * Set the zoom factor for the viewport. Always set higher than 1. 2 = 200%. <br> * Zooming only works when the viewport is being used. * * @param zoomFactor, a float, the factor by which the view must be enlarged. */ public final void setZoomFactor(float zoomFactor) { // this method will pass through GameView (adjustment of the Matrix of the Canvas) gameView.setZoomFactor(zoomFactor); }