2015-07-16 20:40:46 -04: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 15:13:46 -04:00
|
|
|
#import "CRTFrame.h"
|
|
|
|
#import <AppKit/AppKit.h>
|
2015-07-16 20:40:46 -04:00
|
|
|
|
2015-07-26 15:13:46 -04:00
|
|
|
@class CSCathodeRayView;
|
2015-07-16 22:14:40 -04:00
|
|
|
|
2015-07-26 15:13:46 -04:00
|
|
|
@protocol CSCathodeRayViewDelegate
|
|
|
|
- (void)openGLView:(CSCathodeRayView * __nonnull)view didUpdateToTime:(CVTimeStamp)time;
|
2015-07-16 22:14:40 -04:00
|
|
|
@end
|
|
|
|
|
2015-07-26 15:13:46 -04:00
|
|
|
@interface CSCathodeRayView : NSOpenGLView
|
2015-07-16 20:40:46 -04:00
|
|
|
|
2015-07-26 15:13:46 -04:00
|
|
|
@property (nonatomic, weak) id <CSCathodeRayViewDelegate> delegate;
|
2015-07-16 22:14:40 -04:00
|
|
|
|
2015-07-27 21:15:10 -04:00
|
|
|
- (void)invalidate;
|
|
|
|
|
2015-07-31 17:47:10 -04:00
|
|
|
- (BOOL)pushFrame:(CRTFrame * __nonnull)crtFrame;
|
|
|
|
|
2015-07-16 20:40:46 -04:00
|
|
|
@end
|