FillViewport
open class FillViewport(virtualWidth: Int, virtualHeight: Int, var camera: Camera = OrthographicCamera()) : ScalingViewport
A viewport that supports using a virtual size. The virtual viewport will maintain its aspect ratio but in an attempt to fill the screen parts of the viewport may be cut off. No black bars may appear.
Constructors
Functions
Link copied to clipboard
Sets the OpenGL viewport based on viewport and virtual sizes by calling GL.viewport.
Link copied to clipboard