Module flower.Viewport

The Viewport class.

Extends:

Info:

  • Release: V3.0.0
  • Author: Makoto

Functions

getDefaultViewport () Returns the defalut viewport.
Viewport:init () Constructor.
Viewport:setAutoResizeEnabled (value) Sets the auto resize when resize window.
Viewport:updateViewSize (width, height, viewScale, yFlip) Updates the size and scale and offset.


Functions

getDefaultViewport ()
Returns the defalut viewport.

Returns:

    Default viewport instance
Viewport:init ()
Constructor.
Viewport:setAutoResizeEnabled (value)
Sets the auto resize when resize window.

Parameters:

  • value Auto resize enabled.
Viewport:updateViewSize (width, height, viewScale, yFlip)
Updates the size and scale and offset.

Parameters:

  • width Width of the viewport.
  • height Height of the viewport.
  • viewScale Scale factor.
  • yFlip Y flip.
generated by LDoc 1.3