Texture: got rid of the image resizing, since you can just pass null data to glTexIma...
[io/quag.git] / projects / IoApp / GLIoView.h
blobc2d77fa06e653a95df9d7411d04a5f573340a1db
1 #import <Cocoa/Cocoa.h>
2 #import "IoState.h"
3 #import "IoGLUT.h"
5 @interface GLIoView : NSOpenGLView
7 IoState *ioState;
8 NSTrackingRectTag trackingRectTag;
9 NSMutableDictionary *timers;
10 BOOL didInit;
12 BOOL doesReshape;
13 BOOL doesDisplay;
14 BOOL doesMouse;
15 BOOL doesMotion;
16 BOOL doesKeyboard;
17 BOOL doesEntry;
18 BOOL doesPassiveMotion;
20 BOOL canDrop;
21 BOOL canDrag;
23 //BOOL needsDisplay;
25 BOOL FullScreenOn;
26 NSWindow *FullScreenWindow;
27 NSWindow *StartingWindow;
29 IBOutlet NSMenuItem *mainMenu;
30 IBOutlet NSMenuItem *aboutMenu;
31 IBOutlet NSMenuItem *hideMenu;
32 IBOutlet NSMenuItem *quitMenu;
35 + sharedInstance;
37 - (void)drawRect:(NSRect)rect;
38 - (void)reshape;
39 - (void)setTrackingRect;
40 - (void)postRedisplay;
42 - (void)setReshape:(BOOL)b;
43 - (void)setDisplay:(BOOL)b;
44 - (void)setPassiveMotion:(BOOL)b;
45 - (void)setEntry:(BOOL)b;
46 - (void)setMouse:(BOOL)b;
47 - (void)setMotion:(BOOL)b;
48 - (void)setKeyboard:(BOOL)b;
50 - (void)runMain;
52 // Events
53 - (void)mouseDown:(NSEvent *)event;
54 - (void)mouseUp:(NSEvent *)event;
55 - (void)keyDown:(NSEvent *)event;
56 - (void)keyUp:(NSEvent *)event;
58 // Other
59 - (void)mainLoop;
60 - (void)doTimer:(id)timerId;
61 - (void)addTimer:(NSTimer *)aTimer;
62 - (IBAction)stopTimers:(id)sender;
63 - (IBAction)redisplay:(id)sender;
65 - (void)overrideIoGLMethods;
67 - (IBAction)toggleFullScreen:(id)sender;
69 @end