StretchViewport
open class StretchViewport(virtualWidth: Int, virtualHeight: Int, var camera: Camera = OrthographicCamera()) : ScalingViewport
A viewport that supports using a virtual size. The virtual viewport is stretched to fit the screen. There are no black bars and the aspect ratio can change after scaling.
Constructors
Functions
Link copied to clipboard
Sets the OpenGL viewport based on viewport and virtual sizes by calling GL.viewport.
Link copied to clipboard