Uses VuoDisplayRefresh to render callbacks onto an IOSurface, then (on the main thread) draws that IOSurface onto a window.
The view maintains its own local (non-shared) OpenGL context.
Definition at line 24 of file VuoGraphicsLayer.h.
Instance Methods | |
(instancetype) | - initWithWindow:initCallback:updateBackingCallback:backingScaleFactor:resizeCallback:drawCallback:userData: |
Creates an OpenGL view that calls the given callbacks for rendering. More... | |
(void) | - viewDidChangeBackingProperties |
Called by VuoGraphicsView. More... | |
(void) | - enableTriggers |
This function may be called from any thread. More... | |
(void) | - disableTriggers |
This function may be called from any thread. More... | |
(void) | - close |
Indicates that the view should stop drawing. More... | |
(void) | - draw |
Schedules the view to be repainted (which invokes the draw callback and blits it to the window). More... | |
Properties | |
VuoGraphicsWindow * | window |
The window this layer is part of. More... | |
VuoIoSurface | ioSurface |
The IOSurface to pass the texture from Vuo's OpenGL context to the window's OpenGL context. More... | |
- (void) close |
Indicates that the view should stop drawing.
Definition at line 91 of file VuoGraphicsLayer.m.
- (void) disableTriggers |
This function may be called from any thread.
Definition at line 91 of file VuoGraphicsLayer.m.
- (void) draw |
Schedules the view to be repainted (which invokes the draw callback and blits it to the window).
This function may be called from any thread.
Definition at line 91 of file VuoGraphicsLayer.m.
- (void) enableTriggers |
This function may be called from any thread.
Definition at line 91 of file VuoGraphicsLayer.m.
- (instancetype) initWithWindow: | (VuoGraphicsWindow *) | window | |
initCallback: | (VuoGraphicsWindowInitCallback) | initCallback | |
updateBackingCallback: | (VuoGraphicsWindowUpdateBackingCallback) | updateBackingCallback | |
backingScaleFactor: | (float) | backingScaleFactor | |
resizeCallback: | (VuoGraphicsWindowResizeCallback) | resizeCallback | |
drawCallback: | (VuoGraphicsWindowDrawCallback) | drawCallback | |
userData: | (void *) | userData | |
Creates an OpenGL view that calls the given callbacks for rendering.
This function may only be called on the main thread.
Definition at line 91 of file VuoGraphicsLayer.m.
- (void) viewDidChangeBackingProperties |
Called by VuoGraphicsView.
This function may only be called on the main thread.
Definition at line 91 of file VuoGraphicsLayer.m.
|
readwriteatomic |
The IOSurface to pass the texture from Vuo's OpenGL context to the window's OpenGL context.
Definition at line 28 of file VuoGraphicsLayer.h.
|
readwriteatomicassign |
The window this layer is part of.
Definition at line 27 of file VuoGraphicsLayer.h.