public class FillViewport extends ScalingViewport
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).Constructor and Description |
---|
FillViewport(float worldWidth,
float worldHeight)
Creates a new viewport using a new
OrthographicCamera . |
FillViewport(float worldWidth,
float worldHeight,
Camera camera) |
getScaling, setScaling, update
apply, apply, calculateScissors, getBottomGutterHeight, getCamera, getLeftGutterWidth, getPickRay, getRightGutterWidth, getRightGutterX, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getTopGutterHeight, getTopGutterY, getWorldHeight, getWorldWidth, project, project, setCamera, setScreenBounds, setScreenHeight, setScreenPosition, setScreenSize, setScreenWidth, setScreenX, setScreenY, setWorldHeight, setWorldSize, setWorldWidth, toScreenCoordinates, unproject, unproject, update
public FillViewport(float worldWidth, float worldHeight)
OrthographicCamera
.public FillViewport(float worldWidth, float worldHeight, Camera camera)
Copyright © 2015. All rights reserved.