2015-07-17 00:40:46 +00:00
|
|
|
//
|
|
|
|
// OpenGLView.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 16/07/2015.
|
|
|
|
// Copyright © 2015 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2015-07-26 19:13:46 +00:00
|
|
|
#import "CRTFrame.h"
|
|
|
|
#import <AppKit/AppKit.h>
|
2015-07-17 00:40:46 +00:00
|
|
|
|
2015-07-26 19:13:46 +00:00
|
|
|
@class CSCathodeRayView;
|
2015-07-17 02:14:40 +00:00
|
|
|
|
2015-07-26 19:13:46 +00:00
|
|
|
@protocol CSCathodeRayViewDelegate
|
|
|
|
- (void)openGLView:(CSCathodeRayView * __nonnull)view didUpdateToTime:(CVTimeStamp)time;
|
2015-07-17 02:14:40 +00:00
|
|
|
@end
|
|
|
|
|
2015-07-26 19:13:46 +00:00
|
|
|
@interface CSCathodeRayView : NSOpenGLView
|
2015-07-17 00:40:46 +00:00
|
|
|
|
2015-07-26 19:13:46 +00:00
|
|
|
@property (nonatomic, weak) id <CSCathodeRayViewDelegate> delegate;
|
2015-07-17 02:14:40 +00:00
|
|
|
|
2015-07-28 01:15:10 +00:00
|
|
|
- (void)invalidate;
|
|
|
|
|
2015-07-31 21:47:10 +00:00
|
|
|
- (BOOL)pushFrame:(CRTFrame * __nonnull)crtFrame;
|
|
|
|
|
2015-07-17 00:40:46 +00:00
|
|
|
@end
|