Class StretchViewport


  • public class StretchViewport
    extends ScalingViewport
    A ScalingViewport that uses Scaling.stretch so it does not keep the aspect ratio, the world is scaled to take the whole screen.
    • Constructor Detail

      • StretchViewport

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

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