diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemX11.h')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.h b/intern/ghost/intern/GHOST_SystemX11.h index de9a2cdcce9..d318b894d87 100644 --- a/intern/ghost/intern/GHOST_SystemX11.h +++ b/intern/ghost/intern/GHOST_SystemX11.h @@ -176,6 +176,26 @@ public: const GHOST_TEmbedderWindowID parentWindow = 0 ); + + /** + * Create a new offscreen context. + * Never explicitly delete the context, use disposeContext() instead. + * \return The new context (or 0 if creation failed). + */ + GHOST_IContext * + createOffscreenContext( + ); + + /** + * Dispose of a context. + * \param context Pointer to the context to be disposed. + * \return Indication of success. + */ + GHOST_TSuccess + disposeContext( + GHOST_IContext *context + ); + /** * Retrieves events from the system and stores them in the queue. * \param waitForEvent Flag to wait for an event (or return immediately). |