Fork me on GitHub
View source

package haxepunk.screen

class ScaleMode


extended by FixedHeightScaleMode, FixedScaleMode, UniformScaleMode

The default ScaleMode stretches the game area to fill the screen. This can result in non-uniform scaling.


Available since:

2.6.0

Constructor

View source

new (integer : Bool = false) : Void


Parameters:
integer   

Whether scale should be rounded to an integer.

Variables

integer : Bool

Functions

View source

resize (stageWidth : Int, stageHeight : Int) : Void

View source

setBaseSize (width : Int = -1, height : Int = -1) : Void