Vuo  1.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Instance Methods | Properties | List of all members
VuoGraphicsView Class Reference

Description

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

CGLContextObj rootContext
 
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.
 

Method Documentation

- (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.

Property Documentation

- (VuoIoSurface) ioSurface
readwriteatomic

The IOSurface to pass the texture from Vuo's OpenGL context to the window's OpenGL context.

- (bool) needsIOSurfaceRedraw
readwriteatomicassign

Callers can set this to true if they want the content to be redrawn the next time the VuoDisplayRefresh fires.

- (CGLContextObj) rootContext
readwriteatomic
Todo:
https://b33p.net/kosada/node/11554 — remove when contexts are unified.
- (NSRect) viewport
readwriteatomic

The position and size of the viewport (subset of the view that we're actually drawing on), in pixels.


The documentation for this class was generated from the following files: