Class: View

View

View represents a renderable area on screen with the data it should render.


new View(scene, camera, xRatio, yRatio, widthRatio, heightRatio)

Parameters:
Name Type Description
scene

The Scene to render to this view.

camera

The Camera to use for this view.

xRatio

The ratio (0 - 1) of the top-left corner of the view's horizontal position relative to the screen width.

yRatio

The ratio (0 - 1) of the top-left corner of the view vertical position relative to the screen height.

widthRatio

The ratio (0 - 1) of the top-left corner of the view's width relative to the screen width.

heightRatio

The ratio (0 - 1) of the top-left corner of the view's height relative to the screen height.

Author:
  • derschmale <http://www.derschmale.com>

Members


camera

The Camera to use for this view.


heightRatio

The ratio (0 - 1) of the top-left corner of the view's height relative to the screen height.


scene

The Scene to render to this view.


widthRatio

The ratio (0 - 1) of the top-left corner of the view's width relative to the screen width.


xRatio

The ratio (0 - 1) of the top-left corner of the view's horizontal position relative to the screen width.


yRatio

The ratio (0 - 1) of the top-left corner of the view's vertical position relative to the screen height.