Vuo  0.4.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
VuoWindowOpenGLInternal Class Reference

Description

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.
 

Constructor & Destructor Documentation

VuoWindowOpenGLInternal::VuoWindowOpenGLInternal ( void(*)(void *)  init,
void(*)(void *)  draw,
void *  drawContext 
)

Creates a window containing an OpenGL view.

Must be called on the main thread.

Member Function Documentation

void VuoWindowOpenGLInternal::enableTriggers ( VuoOutputTrigger(frameRequested, VuoInteger ,
VuoOutputTrigger(mouseMoved, VuoPoint2d ,
VuoOutputTrigger(mouseLeftPressed, VuoPoint2d  
)

Sets up the window to call the trigger functions when events occur.


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