diff options
author | djp <[email protected]> | 2003-06-08 19:27:01 +0000 |
---|---|---|
committer | djp <[email protected]> | 2003-06-08 19:27:01 +0000 |
commit | d49fd968963909f181423eae46c613189468fac3 (patch) | |
tree | b231329e6b65fd54aa24b3bcc0a3ecc623daec61 /make/glx-x11.cfg | |
parent | 9c8fb046dee5d832bea3f36dcbd43285054f49a0 (diff) |
Initial revision
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@3 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/glx-x11.cfg')
-rw-r--r-- | make/glx-x11.cfg | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/make/glx-x11.cfg b/make/glx-x11.cfg new file mode 100644 index 000000000..f9a69c0b3 --- /dev/null +++ b/make/glx-x11.cfg @@ -0,0 +1,28 @@ +# This .cfg file is used to generate the interface to the GLX routines +# used internally by the X11GLContext implementation. +Package net.java.games.jogl.impl.x11 +JavaClass GLX +Style allstatic +Include gl-common-x11.cfg + +CustomCCode #include <inttypes.h> +CustomCCode #include <X11/Xlib.h> +CustomCCode #include <X11/Xutil.h> +CustomCCode #include <GL/glx.h> + +# Pick up XVisualInfo from jogl +Ignore XVisualInfo + +ArgumentIsString XOpenDisplay 0 + +# Need to expose DefaultScreen and RootWindow macros to Java +CustomJavaCode GLX public static native int DefaultScreen(long display); +CustomJavaCode GLX public static native long RootWindow(long display, int screen); +CustomCCode JNIEXPORT jlong JNICALL +CustomCCode Java_net_java_games_jogl_impl_x11_GLX_DefaultScreen(JNIEnv *env, jclass _unused, jlong display) { +CustomCCode return DefaultScreen((Display*) (intptr_t) display); +CustomCCode } +CustomCCode JNIEXPORT jlong JNICALL +CustomCCode Java_net_java_games_jogl_impl_x11_GLX_RootWindow(JNIEnv *env, jclass _unused, jlong display, jint screen) { +CustomCCode return RootWindow((Display*) (intptr_t) display, screen); +CustomCCode } |