|
VuoWindowOpenGLInternal * | glWindow |
| The parent window; allows the view to access it while full-screen.
|
|
NSOpenGLContext * | windowedGlContext |
| The OpenGL context from Vuo's context pool; allows the windw to access it while the view is full-screen.
|
|
dispatch_queue_t | drawQueue |
| Queue to ensure that multiple threads don't attempt to draw to the same window simultaneously.
|
|
NSRect | viewport |
| The viewport in which we're rendering (it might not match the view's dimensions), relative to the parent view. In points (not pixels).
|
|
Stops the view from calling trigger functions.
This function may be called from any thread.
Sets up the view to call trigger functions.
This function may be called from any thread.
- (id) initWithFrame: |
|
(NSRect) |
frame |
initCallback: |
|
(VuoGlContext glContext, float backingScaleFactor, void *) |
_initCallback |
resizeCallback: |
|
(VuoGlContext glContext, void *, unsigned int width, unsigned int height) |
_resizeCallback |
drawCallback: |
|
(VuoGlContext glContext, void *) |
_drawCallback |
drawContext: |
|
(void *) |
_drawContext |
|
|
| |
Creates an OpenGL view that calls the given callbacks for rendering.
This function may only be called on the main thread.
Returns YES if this window is currently fullscreen.
Use this instead of -[NSView isInFullScreenMode], since that method doesn't exist on 10.6.
Schedules the OpenGL view to be redrawn.
This can be used in both windowed and full-screen mode.
This function may be called from any thread.
- (void) setFullScreen: |
|
(BOOL) |
wantsFullScreen |
onScreen: |
|
(NSScreen *) |
screen |
|
|
| |
Switches between full-screen and windowed mode.
This function may only be called on the main thread.
- (bool) callerRequestedRedraw |
|
protected |
True if an external caller (i.e., not resize or setFullScreen) requested that the GL view be redrawn.
The touch-circle mouse cursor.
The bounding box of circleImage
.
Handles redrawing at the display refresh rate. Only draws if callerRequestedRedraw
.
Draws onto the OpenGL context.
Argument to pass to callbacks (e.g. node instance data).
- (void(* initCallback)(VuoGlContext glContext, float backingScaleFactor, void *)) |
|
protected |
Initializes the OpenGL context.
- (bool) initCallbackCalled |
|
protected |
Has the init callback already been called?
- (void(* resizeCallback)(VuoGlContext glContext, void *, unsigned int width, unsigned int height)) |
|
protected |
Updates the OpenGL context when the view is resized.
- (dispatch_queue_t) drawQueue |
|
readwriteatomicassign |
Queue to ensure that multiple threads don't attempt to draw to the same window simultaneously.
The parent window; allows the view to access it while full-screen.
The viewport in which we're rendering (it might not match the view's dimensions), relative to the parent view. In points (not pixels).
- (NSOpenGLContext*) windowedGlContext |
|
readwriteatomicretain |
The OpenGL context from Vuo's context pool; allows the windw to access it while the view is full-screen.
The documentation for this class was generated from the following files: