summaryrefslogtreecommitdiff
path: root/glimports.hpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-05-27 20:14:31 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-05-27 20:14:31 +0100
commit3bcb33ca2c47bdb70d91d9988664d744f4146855 (patch)
tree5207dfe3dc3ce7d5f6f844b09c97247320dced5e /glimports.hpp
parentebb1ed4a92108eee8b71a60a02117fd801164312 (diff)
Trace the whole OpenGL framework on Mac OS X.
Diffstat (limited to 'glimports.hpp')
-rw-r--r--glimports.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/glimports.hpp b/glimports.hpp
index 5cb276d..ad248e1 100644
--- a/glimports.hpp
+++ b/glimports.hpp
@@ -91,6 +91,20 @@ typedef struct _WGLSWAP
#elif defined(__APPLE__)
#include <OpenGL/OpenGL.h>
+#include <OpenGL/CGLIOSurface.h>
+#include <OpenGL/CGLDevice.h>
+
+extern "C" {
+
+typedef int CGSConnectionID;
+typedef int CGSWindowID;
+typedef int CGSSurfaceID;
+
+CGLError CGLSetSurface(CGLContextObj ctx, CGSConnectionID cid, CGSWindowID wid, CGSSurfaceID sid);
+CGLError CGLGetSurface(CGLContextObj ctx, CGSConnectionID* cid, CGSWindowID* wid, CGSSurfaceID* sid);
+CGLError CGLUpdateContext(CGLContextObj ctx);
+
+}
#else