Viewport
Defined In: | viewport.js |
Class: | Viewport |
Extends: |
Property | Defined By | |
---|---|---|
bbox : Number[] (Wiki Page)
Bbox in [y1, x1, y2, x2] format...
Bbox in [y1, x1, y2, x2] format
|
Viewport Viewport | |
height : (Wiki Page)
Y-height of the viewport...
Y-height of the viewport
|
Viewport Viewport | |
padding : Number (Wiki Page)
Frame to show bbox culling...
Frame to show bbox culling
|
Viewport Viewport | |
width : Number (Wiki Page)
X-width of the viewport...
X-width of the viewport
|
Viewport Viewport |
Method | Defined By | |
---|---|---|
draw( ) : void (Wiki Page)
Performs per-frame setup functions such as resizing the viewport to match the containing
window or element. Also genera...
Performs per-frame setup functions such as resizing the viewport to match the containing
window or element. Also generates Viewport.bbox
Parameters:
|
Viewport Viewport | |
full_bbox( ) : Array[] (Wiki Page)
Bbox in [[x,y],[x,y],[x,y],[x,y]] format, clockwise from top left...
Bbox in [[x,y],[x,y],[x,y],[x,y]] format, clockwise from top left
Parameters:
|
Viewport Viewport | |
nearest_corner( Number x, Number y ) : void (Wiki Page)
Yields the x,y of the nearest Viewport corner in an array as [x,y,corner] where corner is 0,1,2,3 clockwise from top lef...
Yields the x,y of the nearest Viewport corner in an array as [x,y,corner] where corner is 0,1,2,3 clockwise from top left
Parameters:
|
Viewport Viewport | |
power( ) : Number (Wiki Page)
Varies around 1.0 as function of hardware resolution. This assumes that resolution is
somewhat proportianal to power, wh...
Varies around 1.0 as function of hardware resolution. This assumes that resolution is
somewhat proportianal to power, which is generally true. This should eventually be replaced
with something that measures initial load speed in fps to get a better estimate.
Parameters:
|
Viewport Viewport |
This class has no events
Event | Defined By |
---|