Class | Description |
---|---|
ExtendViewport |
A viewport that keeps the world aspect ratio by extending the world in one direction.
|
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). |
FitViewport |
A ScalingViewport that uses
Scaling.fit so it keeps the aspect ratio by scaling the world up to fit the screen, adding
black bars (letterboxing) for the remaining space. |
ScalingViewport |
A viewport that scales the world using
Scaling . |
ScreenViewport |
A viewport where the world size is based on the size of the screen.
|
StretchViewport |
A ScalingViewport that uses
Scaling.stretch so it does not keep the aspect ratio, the world is scaled to take the whole
screen. |
Viewport |
Manages a
Camera and determines how world coordinates are mapped to and from the screen. |
Copyright © 2015. All rights reserved.