diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-05-27 20:14:31 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-05-27 20:14:31 +0100 |
commit | 3bcb33ca2c47bdb70d91d9988664d744f4146855 (patch) | |
tree | 5207dfe3dc3ce7d5f6f844b09c97247320dced5e /glimports.hpp | |
parent | ebb1ed4a92108eee8b71a60a02117fd801164312 (diff) |
Trace the whole OpenGL framework on Mac OS X.
Diffstat (limited to 'glimports.hpp')
-rw-r--r-- | glimports.hpp | 14 |
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 |