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 Detail

      • FillViewport

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

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