ExtendViewport
class ExtendViewport(val minWidth: Int, val minHeight: Int, var camera: Camera = OrthographicCamera()) : Viewport
A viewport that supports using a virtual size. The virtual viewport maintains the aspect ratio by extending the game world horizontally or vertically. The world is scaled to fit within the viewport and then the shorter dimension is lengthened to fill the viewport.
Author
Colton Daily
Constructors
Functions
Link copied to clipboard
Sets the OpenGL viewport based on viewport and virtual sizes by calling GL.viewport.
Link copied to clipboard