Gluegen
From Wikipedia, the free encyclopedia
GlueGen is a Java tool which automatically generates the Java and JNI code necessary to call C libraries from Java code. It reads in ANSI C header files and GlueGen configuration files, and outputs C code. As JNI can be complex, Gluegen simplifies the process of binding Java to C native libraries.
It was originally developed for JOGL, a Java OpenGL library, although the project has since been separated so it can be used with other libraries. It is currently also used in JOAL, which allows Java code to access OpenAL libraries.
[edit] Use of GlueGen in JOGL
In the case of Jogl, GlueGen is not only used to bind OpenGL to Java, but also the low-level windowing system APIs on the Windows, X11 and Mac OS X platforms.
[edit] See also
- SWIG is an another free computer software tool used to connect programs written in C/C++ with various scripting languages, as well as Java and C#.