FitViewport
open class FitViewport(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 while attempting to fit as much as possible onto the screen. 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