Vuo  2.3.2
Instance Methods | Properties | List of all members
VuoGraphicsLayer 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.

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

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

Method Documentation

◆ close

- (void) close

Indicates that the view should stop drawing.

Definition at line 91 of file VuoGraphicsLayer.m.

◆ disableTriggers

- (void) disableTriggers

This function may be called from any thread.

Definition at line 91 of file VuoGraphicsLayer.m.

◆ draw

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

◆ enableTriggers

- (void) enableTriggers

This function may be called from any thread.

Definition at line 91 of file VuoGraphicsLayer.m.

◆ initWithWindow:initCallback:updateBackingCallback:backingScaleFactor:resizeCallback:drawCallback:userData:

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

◆ viewDidChangeBackingProperties

- (void) viewDidChangeBackingProperties

Called by VuoGraphicsView.

This function may only be called on the main thread.

Definition at line 91 of file VuoGraphicsLayer.m.

Property Documentation

◆ ioSurface

- (VuoIoSurface) ioSurface
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.

◆ window

- (VuoGraphicsWindow*) window
readwriteatomicassign

The window this layer is part of.

Definition at line 27 of file VuoGraphicsLayer.h.


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