Difference between revisions of "Viewport"
From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2016.04<br/> === Description === A Viewport sprite allows to display another view of a tree hierarchy...") |
|||
Line 3: | Line 3: | ||
'''Available since:''' Gideros 2016.04<br/> | '''Available since:''' Gideros 2016.04<br/> | ||
=== Description === | === Description === | ||
− | A Viewport sprite allows to display another view of a tree hierarchy already on stage. Sprites can't have two parents, but thanks to Viewport you can display the same Sprite twice on the stage. Useful for split screen games, mini maps and so on.{|- | + | A Viewport sprite allows to display another view of a tree hierarchy already on stage. Sprites can't have two parents, but thanks to Viewport you can display the same Sprite twice on the stage. Useful for split screen games, mini maps and so on. |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[Viewport:lookAngles]] - <br/> | ||
+ | [[Viewport:lookAt]] - <br/> | ||
+ | [[Viewport:setContent]] - <br/> | ||
+ | [[Viewport:setProjection]] - Specify a projection matrix to use when displaying the content. <br/> | ||
+ | [[Viewport:setTransform]] - <br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms:
Available since: Gideros 2016.04
Description
A Viewport sprite allows to display another view of a tree hierarchy already on stage. Sprites can't have two parents, but thanks to Viewport you can display the same Sprite twice on the stage. Useful for split screen games, mini maps and so on.
MethodsViewport:lookAngles - |
EventsConstants |