Package arc.util.viewport
package arc.util.viewport
-
ClassDescriptionA viewport that keeps the world aspect ratio by extending the world in one direction.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).A ScalingViewport that usesScaling.fit
so it keeps the aspect ratio by scaling the world up to fit the screen, adding black bars (letterboxing) for the remaining space.A viewport that scales the world usingScaling
.A viewport where the world size is based on the size of the screen.A ScalingViewport that usesScaling.stretch
so it does not keep the aspect ratio, the world is scaled to take the whole screen.Manages aCamera
and determines how world coordinates are mapped to and from the screen.