ScreenRenderer
@ScreenActor
public protocol ScreenRenderer : AnyObject
A type that renders a screen object.
-
The CIContext instance.
Declaration
Swift
@ScreenActor var context: CIContext { get }
-
Specifies the backgroundColor for output video.
Declaration
Swift
@ScreenActor var backgroundColor: CGColor { get set }
-
The current screen bounds.
Declaration
Swift
@ScreenActor var bounds: CGRect { get }
-
The current presentationTimeStamp.
Declaration
Swift
@ScreenActor var presentationTimeStamp: CMTime { get }
-
Layouts a screen object.
Declaration
Swift
@ScreenActor func layout(_ screenObject: ScreenObject)
-
Draws a sceen object.
Declaration
Swift
@ScreenActor func draw(_ screenObject: ScreenObject)
-
Sets up the render target.
Declaration
Swift
@ScreenActor func setTarget(_ pixelBuffer: CVPixelBuffer?)