![]() |
KudanAR - iOS
1.6.0
|
#import <ARViewPort.h>
Inherits NSObject.
Instance Methods | |
(instancetype) | - initWithOffsetX:y:height:width: |
Properties | |
float | offsetX |
float | offsetY |
float | width |
float | height |
ARCamera * | camera |
ARRenderTarget * | renderTarget |
int | zOrder |
ARViewPort represents a viewport into the scene. It can be used for cropping the rendered image or for zoom. The creation of ARViewPorts is usually handled automatically by the ARCameraView. If you wish to use your own custom view controller, rather than the ARCameraViewController, one of the things you will have to do is create the ncessary ARViewPorts for the camera and content manually.
- (instancetype) initWithOffsetX: | (float) | x | |
y: | (float) | y | |
height: | (float) | height | |
width: | (float) | width | |
Initialises an instance of an ARViewPort with the given X and Y offset values and the given height and width values.
Example of use:
x | Bottom left x coordinate. |
y | Bottom left y coordinate. |
height | Viewport height. |
width | Viewport width. |
|
readwritenonatomicassign |
The ARViewPorts camera. This acts as the root of the viewports scene graph.
|
readwritenonatomicassign |
The width of the viewport in pixels, including any that extend beyond edge of the screen.
|
readwritenonatomicassign |
The offset of the viewport in the X direction. This can be negative to crop horizontally.
|
readwritenonatomicassign |
The offset of the viewport in the Y direction. This can be negative to crop vertically.
|
readwritenonatomicweak |
The ARRenderTarget that this viewport belongs to.
|
readwritenonatomicassign |
The width of the viewport in pixels, including any that extend beyond edge of the screen.
|
readwritenonatomicassign |
When there are multiple viewports added to a render target, this value determines the order. Lower values get rendered first. Negative integers are OK.