| Package | sandy.view |
| Class | public final class ViewPort |
This is the area where the view of the camera is projected.
It may be the whole or only a part of the stage
| Property | Defined by | ||
|---|---|---|---|
| hasChanged : Boolean = false
Flag which specifies if the viewport dimension has changed
| ViewPort | ||
| height : Number | ViewPort | ||
| height2 : Number [read-only]
| ViewPort | ||
| offset : Point
Offset to change the viewport center.
| ViewPort | ||
| ratio : Number [read-only]
| ViewPort | ||
| width : Number | ViewPort | ||
| width2 : Number [read-only]
| ViewPort | ||
| Method | Defined by | ||
|---|---|---|---|
|
ViewPort(p_nW:Number, p_nH:Number)
Creates a new ViewPort.
| ViewPort | ||
|
update():void
Updates the view port
| ViewPort | ||
| hasChanged | property |
public var hasChanged:Boolean = falseFlag which specifies if the viewport dimension has changed
| height | property |
height:Number [read-write]Implementation
public function get height():Number
public function set height(value:Number):void
| height2 | property |
height2:Number [read-only]Implementation
public function get height2():Number
| offset | property |
public var offset:PointOffset to change the viewport center. For example, if you set myCamera.viewport.offset.y to 100, everything drawn at the screen will be moved 100 pixels down (due to Flash vertical axis convention).
| ratio | property |
ratio:Number [read-only]Implementation
public function get ratio():Number
| width | property |
width:Number [read-write]Implementation
public function get width():Number
public function set width(value:Number):void
| width2 | property |
width2:Number [read-only]Implementation
public function get width2():Number
| ViewPort | () | constructor |
public function ViewPort(p_nW:Number, p_nH:Number)Creates a new ViewPort.
Parametersp_nW:Number — The width of the rendered screen
|
|
p_nH:Number — The height of the rendered screen
|
| update | () | method |
public function update():voidUpdates the view port