# This .cfg file is used to generate the interface to the CGL routines # used internally by the MacOSXGLContext implementation. Package net.java.games.jogl.impl.macosx JavaOutputDir ..\build\gensrc\classes NativeOutputDir ..\build\gensrc\native\jogl JavaClass CGL Style allstatic Include gl-common-macosx.cfg 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* 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 updateContext(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 # of byte[] ArgumentIsString getProcAddress 0