public class FillViewport extends ScalingViewport
Viewport with a fixed virtual screen size. The virtual size will be scaled to fill in the game window.
This means that parts of the game may be rendered outside of the window/off-screen. The aspect ratio will always be maintained.| Constructor and Description |
|---|
FillViewport(boolean powerOfTwo,
float worldWidth,
float worldHeight)
Constructor
|
FillViewport(float worldWidth,
float worldHeight)
Constructor
|
isPowerOfTwo, onResize, setPowerOfTwoapply, getHeight, getInvScaleX, getInvScaleY, getScaleX, getScaleY, getWidth, getX, getY, setBounds, toScreenCoordinates, toScreenCoordinates, toWorldCoordinates, toWorldCoordinates, unapplypublic FillViewport(float worldWidth,
float worldHeight)
worldWidth - The virtual screen widthworldHeight - The virtual screen heightpublic FillViewport(boolean powerOfTwo,
float worldWidth,
float worldHeight)
powerOfTwo - True if scaling should only be applied in powers of twoworldWidth - The virtual screen widthworldHeight - The virtual screen height