root/oggzcap/src/SampleCIView.h

Revision 0a70e0d806f25ff621a815590d0f3de9d88a1926, 0.7 kB (checked in by Robin Gareus <robin@…>, 3 years ago)

added OggZCapture OSX App.

  • Property mode set to 100755
Line 
1
2#import <Cocoa/Cocoa.h>
3#import <QuartzCore/CoreImage.h>
4
5@interface SampleCIView: NSOpenGLView
6{
7    CIContext *_context;
8    CIImage*   _image;
9    NSRect     _lastBounds;
10        CGRect     _cleanRect;
11        CGSize     _displaySize;
12}
13
14- (void)setImage:(CIImage*)image;
15- (void)setImage:(CIImage*)image dirtyRect:(CGRect)r;
16- (void)setCleanRect:(CGRect)cleanRect;
17- (void)setDisplaySize:(CGSize)displaySize;
18
19- (CIImage*)image;
20
21// Called when the view bounds have changed
22- (void)viewBoundsDidChange:(NSRect)bounds;
23
24@end
25
26@interface NSObject (SampleCIViewDraw)
27
28// If defined in the view subclass, called when rendering
29- (void)drawRect:(NSRect)bounds inCIContext:(CIContext *)ctx;
30
31@end
Note: See TracBrowser for help on using the browser.