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 Details

    • StretchViewport

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

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