ARViewPort represents a viewport into the scene. It can be used for cropping the rendered image or for zoom.
| ARViewPort |
( |
int |
offsetX, |
|
|
int |
offsetY, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Initialises an instance of an ARViewPort with the given X and Y offset values and the given height and width values.
- Parameters
-
| offsetX | Bottom left x coordinate. |
| offsetY | Bottom left y coordinate. |
| height | Viewport height. |
| width | Viewport width. |
Returns the height of the viewport, in pixels, including any that extend beyond edge of the screen.
- Returns
- The height of the viewport in pixels.
Returns the offset of the viewport in the X direction. This can be negative to crop horizontally.
- Returns
- The offset of the viewport in the X direction.
Returns the offset of the viewport in the Y direction. This can be negative to crop vertically.
- Returns
- The offset of the viewport in the Y direction.
Returns the width of the viewport, in pixels, including any that extend beyond edge of the screen.
- Returns
- The width of the viewport.
Gets the value determining the order when there are multiple viewports added to a render target. Lower values get rendered first. Negative integers are OK.
- Returns
- The order of this viewport.
Sets the ARViewPort's ARCamera. This acts as the root of the viewport's scene graph.
- Parameters
-
| void setViewportParms |
( |
int |
offsetX, |
|
|
int |
offsetY, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Sets ARViewport's parameters.
- Parameters
-
| offsetX | Bottom left x coordinate. |
| offsetY | Bottom left y coordinate. |
| height | Viewport height. |
| width | Viewport width. |
| void setZOrder |
( |
int |
zOrder | ) |
|
|
inline |
When there are multiple viewports added to a render target, this value determines the order. Lower values get rendered first. Negative integers are OK.
- Parameters
-
The documentation for this class was generated from the following file: