2020-08-04 22:22:14 +00:00
|
|
|
//
|
|
|
|
// ScanTarget.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 02/08/2020.
|
|
|
|
// Copyright © 2020 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2020-08-04 23:44:56 +00:00
|
|
|
#import <MetalKit/MetalKit.h>
|
2020-08-04 22:22:14 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
Provides a ScanTarget that uses Metal as its back-end.
|
|
|
|
*/
|
2020-08-04 23:44:56 +00:00
|
|
|
@interface CSScanTarget : NSObject <MTKViewDelegate>
|
2020-08-04 22:22:14 +00:00
|
|
|
|
2020-08-04 23:44:56 +00:00
|
|
|
- (nonnull instancetype)initWithView:(nonnull MTKView *)view;
|
2020-08-04 22:22:14 +00:00
|
|
|
|
2020-08-16 01:24:10 +00:00
|
|
|
// Draws all scans currently residing at the scan target to the backing store,
|
|
|
|
// ready for output when next requested.
|
|
|
|
- (void)updateFrameBuffer;
|
|
|
|
|
2020-09-14 02:30:17 +00:00
|
|
|
- (nonnull NSBitmapImageRep *)imageRepresentation;
|
|
|
|
|
2020-08-04 22:22:14 +00:00
|
|
|
@end
|