Vuo  2.0.0
VuoGraphicsLayer.h
Go to the documentation of this file.
1 
10 #import "module.h"
11 #import "VuoDisplayRefresh.h"
12 #import "VuoGlContext.h"
13 #import "VuoWindow.h"
14 #import "VuoGraphicsWindow.h"
15 
16 #ifndef NS_RETURNS_INNER_POINTER
17 #define NS_RETURNS_INNER_POINTER
18 #endif
19 #import <AppKit/AppKit.h>
20 
27 @interface VuoGraphicsLayer : CAOpenGLLayer
28 @property(assign) VuoGraphicsWindow *window;
30 //@property NSRect viewport; ///< The position and size of the viewport (subset of the view that we're actually drawing on), in pixels.
31 
32 - (instancetype)initWithWindow:(VuoGraphicsWindow *)window
33  initCallback:(VuoGraphicsWindowInitCallback)initCallback
34  updateBackingCallback:(VuoGraphicsWindowUpdateBackingCallback)updateBackingCallback
35  backingScaleFactor:(float)backingScaleFactor
36  resizeCallback:(VuoGraphicsWindowResizeCallback)resizeCallback
37  drawCallback:(VuoGraphicsWindowDrawCallback)drawCallback
38  userData:(void *)userData;
40 - (void)enableTriggers;
41 - (void)disableTriggers;
42 - (void)close;
43 - (void)draw;
44 @end