Package arc.util.viewport
Class StretchViewport
java.lang.Object
arc.util.viewport.Viewport
arc.util.viewport.ScalingViewport
arc.util.viewport.StretchViewport
A ScalingViewport that uses
Scaling.stretch
so it does not keep the aspect ratio, the world is scaled to take the whole
screen.-
Constructor Summary
ConstructorDescriptionStretchViewport
(float worldWidth, float worldHeight) Creates a new viewport using a newCamera
.StretchViewport
(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
-
StretchViewport
public StretchViewport(float worldWidth, float worldHeight) Creates a new viewport using a newCamera
. -
StretchViewport
-