Vuo
1.2.6
|
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.
Instance Methods | |
(instancetype) | - initWithInitCallback:updateBackingCallback:backingScaleFactor:resizeCallback:drawCallback:userData: |
Creates an OpenGL view that calls the given callbacks for rendering. | |
(void) | - enableTriggers |
This function may be called from any thread. | |
(void) | - disableTriggers |
This function may be called from any thread. | |
(void) | - close |
Indicates that the view should stop drawing. | |
Properties | |
bool | needsIOSurfaceRedraw |
Callers can set this to true if they want the content to be redrawn the next time the VuoDisplayRefresh fires. | |
VuoIoSurface | ioSurface |
The IOSurface to pass the texture from Vuo's OpenGL context to the window's OpenGL context. | |
NSRect | viewport |
The position and size of the viewport (subset of the view that we're actually drawing on), in pixels. | |
- (void) close |
Indicates that the view should stop drawing.
- (void) disableTriggers |
This function may be called from any thread.
- (void) enableTriggers |
This function may be called from any thread.
- (instancetype) initWithInitCallback: | (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.
|
readwriteatomic |
The IOSurface to pass the texture from Vuo's OpenGL context to the window's OpenGL context.
|
readwriteatomicassign |
Callers can set this to true if they want the content to be redrawn the next time the VuoDisplayRefresh fires.
|
readwriteatomic |
The position and size of the viewport (subset of the view that we're actually drawing on), in pixels.