Class FillViewport


public class FillViewport extends ScalingViewport
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).
  • Constructor Details

    • FillViewport

      public FillViewport(float worldWidth, float worldHeight)
      Creates a new viewport using a new Camera.
    • FillViewport

      public FillViewport(float worldWidth, float worldHeight, Camera camera)