Uses of Class
com.badlogic.gdx.utils.viewport.Viewport
-
Packages that use Viewport Package Description com.badlogic.gdx.scenes.scene2d com.badlogic.gdx.utils.viewport -
-
Uses of Viewport in com.badlogic.gdx.scenes.scene2d
Methods in com.badlogic.gdx.scenes.scene2d that return Viewport Modifier and Type Method Description ViewportStage. getViewport()Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Viewport Modifier and Type Method Description voidStage. setViewport(Viewport viewport)Constructors in com.badlogic.gdx.scenes.scene2d with parameters of type Viewport Constructor Description Stage(Viewport viewport)Creates a stage with the specified viewport.Stage(Viewport viewport, Batch batch)Creates a stage with the specified viewport and batch. -
Uses of Viewport in com.badlogic.gdx.utils.viewport
Subclasses of Viewport in com.badlogic.gdx.utils.viewport Modifier and Type Class Description classExtendViewportA viewport that keeps the world aspect ratio by both scaling and extending the world.classFillViewportA ScalingViewport that usesScaling.fillso it keeps the aspect ratio by scaling the world up to take the whole screen (some of the world may be off screen).classFitViewportA ScalingViewport that usesScaling.fitso it keeps the aspect ratio by scaling the world up to fit the screen, adding black bars (letterboxing) for the remaining space.classScalingViewportA viewport that scales the world usingScaling.classScreenViewportA viewport where the world size is based on the size of the screen.classStretchViewportA ScalingViewport that usesScaling.stretchso it does not keep the aspect ratio, the world is scaled to take the whole screen.
-