#import <ARRenderTarget.h>
Inherits NSObject.
Inherited by ARRenderTargetMain, and ARRenderTargetTexture.
A render target represents a target buffer for rendering.
◆ addDelegate:
Add a delegate to receive rendering events for this render target.
Example of use:
[renderTarget addDelegate:self];
- Parameters
-
delegate | ARRenderTargate delegate. |
◆ addViewPort:
Add a viewport to this render target.
Example of use:
[renderTarget addViewPort:viewPort];
- Parameters
-
viewPort | The viewport to add. |
◆ addViewPort:zOrder:
Add a viewport to this render target and set its z-order.
Example of use:
[renderTarget addViewPort:viewPort zOrder:-10];
- Parameters
-
viewPort | The viewport to add. |
zOrder | The render priority of this viewport. Any value is fine, lower values are rendered first. |
◆ bindBuffer
Binds frame buffer objects for use in OpenGL.
◆ bindCaptureBuffer
- (void) bindCaptureBuffer |
|
|
|
Binds capture frame buffer. Used for touch detection.
◆ checkFBO
Check the frame buffer status of the render target.
- Returns
- True if image data for the render target has finished buffering, false otherwise.
◆ clearViewPorts
Remove all viewports from this render target.
Example of use:
◆ createDefaultViewPort
Creates a default viewport with dimensions matching the resolution of this render target and no offset.
Example of use:
- Returns
- The new viewport.
◆ draw
Draws render target to screen.
◆ initWithWidth:height:
- (instancetype) initWithWidth: |
|
(float) |
width |
height: |
|
(float) |
height |
|
|
| |
◆ removeViewPort:
Remove a viewport from this render target.
Example of use:
[rederTarget removeViewPort:viewPort];
- Parameters
-
viewPort | The viewport to remove. |
◆ screenshot
Take a screenshot of this render target. Resolution of the image is the same as the resolution of the render target.
Example of use:
- Returns
- The screenshot.
◆ delegates
The array of all added delegates.
◆ hasDepth
Whether this render target has a depth buffer.
◆ hasStencil
Whether this render target has a stencil buffer.
◆ height
The height, in pixels, of this render target.
◆ manualDraw
Whether this render target is drawn automatically each frame, or whether it has to be drawn explicitly. Default NO - drawn automatically.
◆ numberOfViewPorts
- (NSUInteger) numberOfViewPorts |
|
readnonatomicassign |
The number of viewports contained by this render target.
◆ priority
The priority of this render target relative to other render targets. Any value is fine. Lower is rendered first.
◆ touchEventReceived
- (BOOL) touchEventReceived |
|
readwritenonatomicassign |
Whether the screen has been touched.
◆ touchPoint
Coordinates for where the screen was touched.
◆ viewPorts
The array of ARViewPort objects that this render target contains. These are rendered based on viewport z-order.
◆ width
The width, in pixels, of this render target.
The documentation for this class was generated from the following files:
- ARRenderTarget.h
- ARRenderTarget.mm