test/opengl_interop/main.c
void*
thread_view_run(void* arg)
{
    struct application* app = (struct application*)arg;
    
#ifndef TEST_OPENGL_INTEROP_MULTI_THREAD
    gpujpeg_init_device(0, GPUJPEG_OPENGL_INTEROPERABILITY);
#endif
    
    // Run through GLX
    view_glx(app->view);
    
    // Quit image thread
    app->quit = 1;
    
    return 0;
}
/**
 * Thread that shows window and in loop renders current image.
 * Before rendering it calls on_render callback.
 */
Thread that shows window and in loop renders current image.
Before rendering it calls on_render callback.
Thread that shows window and in loop renders current image . Before rendering it calls on_render callback .
void*
thread_view_run(void* arg)
{
    struct application* app = (struct application*)arg;
#ifndef TEST_OPENGL_INTEROP_MULTI_THREAD
    gpujpeg_init_device(0, GPUJPEG_OPENGL_INTEROPERABILITY);
#endif
    view_glx(app->view);
    app->quit = 1;
    return 0;
}
void * thread_view_run ( void * arg ) { struct application * app = ( struct application * ) arg ; #ifndef TEST_OPENGL_INTEROP_MULTI_THREAD gpujpeg_init_device ( 0 , GPUJPEG_OPENGL_INTEROPERABILITY ) ; #endif view_glx ( app -> view ) ; app -> quit = 1 ; return 0 ; }
Thread that shows window and in loop renders current image.
Thread that shows window and in loop renders current image .
// Run through GLX // Quit image thread