Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScalingStage

This stage will render the game to a render texture in its original dimensions as provided in the constructor, then depending on selected ContainerUpscaleMode will scale the contents proportionally. The stage will then be centered in the available spcae that is left.

Hierarchy

  • ScalingStage

Implements

Index

Constructors

constructor

  • Parameters

    • game: Game
    • baseWidth: number
    • baseHeight: number
    • Default value scaleMode: number = PIXI.SCALE_MODES.NEAREST
    • Default value upscaleMode: ContainerUpscaleMode = ContainerUpscaleMode.SnapScale

    Returns ScalingStage

Accessors

upscaleMode

Methods

addChild

removeChild

  • removeChild(child: DisplayObject): void
  • Parameters

    • child: DisplayObject

    Returns void

setWindowDimensions

  • setWindowDimensions(windowWidth: number, windowHeight: number): void
  • Parameters

    • windowWidth: number
    • windowHeight: number

    Returns void

update

  • update(): void
  • Returns void

Generated using TypeDoc