Merge branch 'master' into blender2.8
[blender.git] / intern / ghost / intern / GHOST_SystemCocoa.h
index 2457a94..f070273 100644 (file)
@@ -123,6 +123,25 @@ 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
+           );
+
        /***************************************************************************************
         * Event management functionality
         ***************************************************************************************/