-
Notifications
You must be signed in to change notification settings - Fork 17
/
FlurryView.h
39 lines (34 loc) · 1.21 KB
/
FlurryView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#import <Cocoa/Cocoa.h>
#import <ScreenSaver/ScreenSaver.h>
#import "Gl_saver.h"
#import "FlurryUtils.h"
#import "PresetManager.h"
@interface FlurryView : ScreenSaverView
{
NSOpenGLView *_glView;
BOOL randomisePreset, randomiseDisplay;
NSTimer *tableRefreshTimer;
PresetManager *presetManager;
double _oldFrameTime;
BOOL garbageHack;
/*
BUG? - When looking at a preview in System Prefernces the OpenGL view is full of random data from the video card (eg. click on another GL saver, then Flurry). For some reason, glClear in startAnimation doesn't clear. When garbageHack is YES, the animateOneFrame method clears the screen to black.
*/
IBOutlet id presetMenuSpace;
IBOutlet NSTableView *flurryTable;
IBOutlet id streamCountSlider;
IBOutlet id thicknessSlider;
IBOutlet id speedSlider;
IBOutlet id colourMenu;
IBOutlet id window;
IBOutlet id randomPresetCheckbox;
IBOutlet id randomDisplayCheckbox;
}
- (void)writeDefaults;
- (IBAction)testNow:(id)sender;
- (IBAction)displayReadMe:(id)sender;
- (IBAction)addFlurry:(id)sender;
- (IBAction)deleteFlurry:(id)sender;
- (IBAction)saveAndCloseSheet:(id)sender;
- (IBAction)somethingChanged:(id)sender;
@end