diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-02-26 21:10:15 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-02-26 21:10:15 +0300 |
commit | 0940e89e604d85d717f792b73e30e5e96a42e7c6 (patch) | |
tree | 4160e3fe1477cb9644fe2fc9163c4dffc31a5a86 /intern/ghost/intern/GHOST_SystemX11.h | |
parent | d6df23d9d96bfefb6a0a0f3979d3440d0fef05cc (diff) |
GHOST: Add new interface to manage offscreen contexts.
Offscreen contexts are not attached to a window and can only be used for rendering to frambuffer objects.
CGL implementation : Brecht Van Lommel (brecht)
GLX implementation : Clément Foucault (fclem)
WGL implementation : Germano Cavalcante (mano-wii)
Other implementation are just place holder for now.
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 e60cab6a194..1ad8277a431 100644 --- a/intern/ghost/intern/GHOST_SystemX11.h +++ b/intern/ghost/intern/GHOST_SystemX11.h @@ -171,6 +171,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). |