Package | Description |
---|---|
com.badlogic.gdx.utils.viewport |
Modifier and Type | Class and Description |
---|---|
class |
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). |
class |
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. |
class |
StretchViewport
A ScalingViewport that uses
Scaling.stretch so it does not keep the aspect ratio, the world is scaled to take the whole
screen. |
Copyright © 2021. All rights reserved.