Vuo
0.4.5
|
A process-wide set of mutually-shared OpenGL contexts.
Public Member Functions | |
CGLContextObj | use (void) |
Finds an unused GL context in the process-wide shared context pool (or creates one if none is available), marks it used, activates it on the current thread, and returns it. | |
void | disuse (CGLContextObj context) |
Throws the specified context back in the pool. | |
Static Public Member Functions | |
static VuoGlContextPool * | getPool () |
Returns the process-wide pool singleton instance. | |
Friends | |
void | VuoGlContext_setGlobalRootContext (void *rootContext) |
Specifies a platform-specific context to be used as the base for all of Vuo's shared GL contexts. | |
|
inline |
Throws the specified context back in the pool.
Can be called from any thread.
|
inline |
Finds an unused GL context in the process-wide shared context pool (or creates one if none is available), marks it used, activates it on the current thread, and returns it.
Can be called from any thread.
|
friend |
Specifies a platform-specific context to be used as the base for all of Vuo's shared GL contexts.
On Mac, this should be a CGLContext
.
Must be called before any Vuo composition is loaded, and before any other VuoGlContext_*
methods.