diff options
author | Kenneth Russel <[email protected]> | 2003-06-26 13:21:12 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-06-26 13:21:12 +0000 |
commit | 0a6e191eaebcc8edc2611dbedab6fd04a615fc2f (patch) | |
tree | 7f8a9b8e88a6bc6662827d3f092b943b1ea893fb /make/cgl-macosx.cfg | |
parent | 2b54833bb15d6cae356fa0c5777d11e152d774cb (diff) |
Initial Mac OS X port of Jogl by Gerard Ziemski and Kenneth Russell,
subsuming the previous prototype implementation (no GLCanvas support)
done by Marc Downie.
Added user's guide (HTML format) under doc/userguide/index.html.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@13 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/cgl-macosx.cfg')
-rw-r--r-- | make/cgl-macosx.cfg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/make/cgl-macosx.cfg b/make/cgl-macosx.cfg new file mode 100644 index 000000000..32059db8b --- /dev/null +++ b/make/cgl-macosx.cfg @@ -0,0 +1,24 @@ +# 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* nsView); +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* getProcAddress(const char *procName); + +# Implement the first argument to getProcAddress as String instead +# of byte[] +ArgumentIsString getProcAddress 0 |