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

[edit] Useful Links

In other languages