Package arc.util.viewport
Class FillViewport
java.lang.Object
arc.util.viewport.Viewport
arc.util.viewport.ScalingViewport
arc.util.viewport.FillViewport
A ScalingViewport that uses
Scaling.fill
so it keeps the aspect ratio by scaling the world up to take the whole screen
(some of the world may be off screen).-
Constructor Summary
ConstructorDescriptionFillViewport
(float worldWidth, float worldHeight) Creates a new viewport using a newCamera
.FillViewport
(float worldWidth, float worldHeight, Camera camera) -
Method Summary
Methods inherited from class arc.util.viewport.ScalingViewport
getScaling, setScaling, update
Methods inherited from class arc.util.viewport.Viewport
apply, apply, calculateScissors, getBottomGutterHeight, getCamera, getLeftGutterWidth, getRightGutterWidth, getRightGutterX, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getTopGutterHeight, getTopGutterY, getWorldHeight, getWorldWidth, project, setCamera, setScreenBounds, setScreenHeight, setScreenPosition, setScreenSize, setScreenWidth, setScreenX, setScreenY, setWorldHeight, setWorldSize, setWorldWidth, toScreenCoordinates, unproject, update
-
Constructor Details
-
FillViewport
public FillViewport(float worldWidth, float worldHeight) Creates a new viewport using a newCamera
. -
FillViewport
-