From d49fd968963909f181423eae46c613189468fac3 Mon Sep 17 00:00:00 2001 From: djp Date: Sun, 8 Jun 2003 19:27:01 +0000 Subject: Initial revision git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@3 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/glx-x11.cfg | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 make/glx-x11.cfg (limited to 'make/glx-x11.cfg') 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 +CustomCCode #include +CustomCCode #include +CustomCCode #include + +# 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 } -- cgit v1.2.3