aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/OpenGL_X11_common.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-02-13 05:39:47 +0000
committerSven Gothel <[email protected]>2001-02-13 05:39:47 +0000
commitf36d363033840c84c76bf5285a252846aa9a7e96 (patch)
tree677c2801966164f79110bdc1038b997f037399f0 /CNativeCode/OpenGL_X11_common.h
parent3e2b16a820bfe03f8f3837c3aaa615c8c4b7f18c (diff)
JAWT Support JDK >=1.3rel-2-5-2-0-test1
Diffstat (limited to 'CNativeCode/OpenGL_X11_common.h')
-rw-r--r--CNativeCode/OpenGL_X11_common.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/CNativeCode/OpenGL_X11_common.h b/CNativeCode/OpenGL_X11_common.h
new file mode 100644
index 0000000..2eff8e3
--- /dev/null
+++ b/CNativeCode/OpenGL_X11_common.h
@@ -0,0 +1,82 @@
+#ifndef _OPENGL_X11_COMMON_
+#define _OPENGL_X11_COMMON_
+
+ /*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+ #include "OpenGL_misc.h"
+
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+
+ #include <GL/glx.h>
+ #include <X11/Xatom.h>
+
+ typedef struct {
+ XVisualInfo * visual;
+ GLXContext gc;
+ int success; /* 1: OK, 0: ERROR */
+ } VisualGC;
+
+
+ /*
+ * prototypes for functions local to this file scope
+ */
+ LIBAPI int LIBAPIENTRY get_GC( Display *display, Window win,
+ XVisualInfo *visual,
+ GLXContext *gc, GLXContext gc_share);
+
+ LIBAPI VisualGC LIBAPIENTRY findVisualGlX( Display *display,
+ Window rootWin,
+ Window * pWin,
+ int width, int height,
+ jboolean doubleBuffer,
+ jboolean stereoView,
+ jboolean rgba,
+ jint stencilBits,
+ jint accumSize,
+ jboolean * pOwnWin,
+ GLXContext shareWith,
+ jboolean offscreen,
+ Pixmap *pix,
+ jboolean verbose
+ );
+
+ LIBAPI void LIBAPIENTRY printVisualInfo ( Display *display, XVisualInfo * vi);
+ LIBAPI void LIBAPIENTRY printAllVisualInfo ( Display *disp, Window win,
+ jboolean verbose);
+
+ LIBAPI int LIBAPIENTRY testVisualInfo ( Display *display, XVisualInfo * vi,
+ int dblBuffer, int stereoView, int rgbaMode,
+ int stencilSize, int accumSize);
+
+ LIBAPI XVisualInfo * LIBAPIENTRY findVisualIdByFeature(
+ XVisualInfo ** visualList,
+ Display *disp, Window win,
+ int dblBuffer, int stereoView, int rgbaMode,
+ int stencilSize, int accumSize,
+ jboolean verbose);
+
+ /* testX11Java does important implementation plattformspecific checks:
+ *
+ * o do fit X11-Vars in jint (because GLFrame stores 'em like that)
+ */
+ LIBAPI jboolean LIBAPIENTRY testX11Java();
+
+ LIBAPI int LIBAPIENTRY x11gl_myErrorHandler(
+ Display *pDisp, XErrorEvent *p_error);
+
+ LIBAPI int LIBAPIENTRY x11gl_myIOErrorHandler(Display *pDisp);
+
+ LIBAPI Window LIBAPIENTRY createOwnOverlayWin(
+ Display *display,
+ Window rootwini, Window parentWin,
+ XVisualInfo *visual, int width, int height);
+
+#endif