Component_Viewport Class
A viewport component can contain multiple graphic objects and will automatically clip them if they move out of the viewport-rectangle. The area of a viewport can also be tinted or colored. So to tint the whole for example, it enough to create a viewport taking the whole screen-space and then setting the tone or color property.
Item Index
Methods
dispose
()
Disposes the viewport and all associated graphic objects.
setup
()
Sets up the viewport.
update
()
Updates the sprite properties from the game object properties.
update
()
Updates the viewport.
updateOptionalProperties
()
Updates the optional sprite properties from the game object properties.
updateOrigin
()
Updates the origin-point of the game object.
updatePadding
()
Updates the padding.
Properties
viewport
gs.Viewport
protected
The native viewport-object.
viewport
gs.Viewport
protected
The visibility. If false the viewport and associated graphic objects are not rendered.