aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/cgl-macosx.cfg20
-rw-r--r--make/stub_includes/macosx/window-system.c19
2 files changed, 28 insertions, 11 deletions
diff --git a/make/cgl-macosx.cfg b/make/cgl-macosx.cfg
index f3824f703..649fc7e30 100644
--- a/make/cgl-macosx.cfg
+++ b/make/cgl-macosx.cfg
@@ -12,11 +12,21 @@ Opaque long void *
# FIXME: rather than put in a header file somewhere in the source tree,
# this was the easiest way of sharing the prototypes between these files
CustomCCode typedef int Bool;
-CustomCCode extern void* createContext(void* nsView, void* shareContext);
-CustomCCode extern Bool makeCurrentContext(void* nsView , void* nsContext);
-CustomCCode extern Bool clearCurrentContext (void* nsView , void* nsContext);
-CustomCCode extern Bool deleteContext (void* nsView , void* nsContext);
-CustomCCode extern Bool flushBuffer (void* nsView , void* nsContext);
+
+CustomCCode extern void* createContext(void* shareContext, void* nsView);
+CustomCCode extern Bool makeCurrentContext(void* nsContext, void* nsView);
+CustomCCode extern Bool clearCurrentContext(void* nsContext, void* nsView);
+CustomCCode extern Bool deleteContext(void* nsContext, void* nsView);
+CustomCCode extern Bool flushBuffer(void* nsContext, void* nsView);
+
+CustomCCode extern void* updateContextRegister(void* nsContext, void* nsView);
+CustomCCode extern void updateContextUnregister(void* nsContext, void* nsView, void* updater);
+
+CustomCCode extern void* createPBuffer(void* nsContext, int width, int height);
+CustomCCode extern Bool destroyPBuffer(void* nsContext, void* pBuffer);
+CustomCCode extern int bindPBuffer(void* nsContext, void* pBuffer);
+CustomCCode extern void unbindPBuffer(void* nsContext, void* pBuffer, int pBufferTextureName);
+
CustomCCode extern void* getProcAddress(const char *procName);
# Implement the first argument to getProcAddress as String instead
diff --git a/make/stub_includes/macosx/window-system.c b/make/stub_includes/macosx/window-system.c
index f49fd3d11..15506299b 100644
--- a/make/stub_includes/macosx/window-system.c
+++ b/make/stub_includes/macosx/window-system.c
@@ -3,11 +3,18 @@
typedef int Bool;
-void* createContext(void* nsView, void* shareContext);
-Bool makeCurrentContext(void* nsView, void* nsContext);
-Bool clearCurrentContext(void* nsView, void* nsContext);
-void updateContext(void* nsView, void* nsContext);
-Bool deleteContext(void* nsView, void* nsContext);
-Bool flushBuffer(void* nsView, void* nsContext);
+void* createContext(void* shareContext, void* nsView);
+Bool makeCurrentContext(void* nsContext, void* nsView);
+Bool clearCurrentContext(void* nsContext, void* nsView);
+Bool deleteContext(void* nsContext, void* nsView);
+Bool flushBuffer(void* nsContext, void* nsView);
+
+void* updateContextRegister(void* nsContext, void* nsView);
+void updateContextUnregister(void* nsContext, void* nsView, void* updater);
+
+void* createPBuffer(void* nsContext, int width, int height);
+Bool destroyPBuffer(void* nsContext, void* pBuffer);
+int bindPBuffer(void* nsContext, void* pBuffer);
+void unbindPBuffer(void* nsContext, void* pBuffer, int pBufferTextureName);
void* getProcAddress(const char *procName);