Vuo
1.0.1
|
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, 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.
This function may be called from any thread.
|
inlinestatic |
Returns the process-wide pool singleton instance.
|
inline |
Finds an unused GL context in the process-wide shared context pool (or creates one if none is available), marks it used, and returns it.
This function may 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
. The CGLContext
must be unlocked when calling this function, but after that you may lock it at any time (Vuo doesn't require it to be locked or unlocked).
Must be called before any Vuo composition is loaded, and before any other VuoGlContext_*
methods.
This function may be called from any thread.