ScreenRenderer

@ScreenActor
public protocol ScreenRenderer : AnyObject

A type that renders a screen object.

  • The CIContext instance.

    Declaration

    Swift

    var context: CIContext { get }
  • Specifies the backgroundColor for output video.

    Declaration

    Swift

    var backgroundColor: CGColor { get set }
  • The current screen bounds.

    Declaration

    Swift

    var bounds: CGRect { get }
  • Layouts a screen object.

    Declaration

    Swift

    func layout(_ screenObject: ScreenObject)
  • Draws a sceen object.

    Declaration

    Swift

    func draw(_ screenObject: ScreenObject)
  • Sets up the render target.

    Declaration

    Swift

    func setTarget(_ pixelBuffer: CVPixelBuffer?)