Vuo
0.4.1
|
Private implementation of VuoWindowOpenGL
.
Public Member Functions | |
VuoWindowOpenGLInternal (void(*init)(void *), void(*draw)(void *), void *drawContext) | |
Creates a window containing an OpenGL view. | |
~VuoWindowOpenGLInternal () | |
Throw this window's OpenGL context back into the pool. | |
void | enableTriggers (VuoOutputTrigger(frameRequested, VuoInteger), VuoOutputTrigger(mouseMoved, VuoPoint2d), VuoOutputTrigger(mouseLeftPressed, VuoPoint2d)) |
Sets up the window to call the trigger functions when events occur. | |
void | disableTriggers (void) |
Stops the window from calling trigger functions when events occur. | |
void | scheduleRedraw (void) |
Schedules the GL widget to be redrawn. | |
Protected Member Functions | |
bool | event (QEvent *event) |
Override handling of certain events. | |
void | exposeEvent (QExposeEvent *event) |
Render when the window is exposed. | |
void | resizeEvent (QResizeEvent *event) |
Render when the window is resized. | |
VuoWindowOpenGLInternal::VuoWindowOpenGLInternal | ( | void(*)(void *) | init, |
void(*)(void *) | draw, | ||
void * | drawContext | ||
) |
Creates a window containing an OpenGL view.
Must be called on the main thread.
void VuoWindowOpenGLInternal::enableTriggers | ( | VuoOutputTrigger(frameRequested, VuoInteger) | , |
VuoOutputTrigger(mouseMoved, VuoPoint2d) | , | ||
VuoOutputTrigger(mouseLeftPressed, VuoPoint2d) | |||
) |
Sets up the window to call the trigger functions when events occur.