aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/jawt_misc.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/jawt_misc.h
parent3e2b16a820bfe03f8f3837c3aaa615c8c4b7f18c (diff)
JAWT Support JDK >=1.3rel-2-5-2-0-test1
Diffstat (limited to 'CNativeCode/jawt_misc.h')
-rw-r--r--CNativeCode/jawt_misc.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/CNativeCode/jawt_misc.h b/CNativeCode/jawt_misc.h
new file mode 100644
index 0000000..9befce9
--- /dev/null
+++ b/CNativeCode/jawt_misc.h
@@ -0,0 +1,84 @@
+
+#ifndef _JAWT_MISC_H
+#define _JAWT_MISC_H
+
+ #include "OpenGL_misc.h"
+
+ #include <jawt_md.h>
+ #include <assert.h>
+
+ typedef struct {
+ JAWT_DrawingSurface* ds;
+ JAWT_DrawingSurfaceInfo* dsi;
+
+ /**
+ * just the java native window handle,
+ * valid, if ds is locked !
+ * but this is just an old copy ..
+ * updated via jawt_lock !
+ */
+ void * dsi_os;
+
+ /**
+ * This is, if dsi_win_created != 0,
+ * the:
+ * - the own created child window, or
+ * - the GLXPixmap of the offscreenRendering data
+ *
+ * This ressource is created manually,
+ * so it must be destroyed manually either !
+ *
+ * Otherwise (dsi_win_created==0),
+ * this is just the backup
+ * of the dsi_os->drawable, of the last lock !
+ */
+ void * dsi_win;
+ int dsi_win_created;
+
+ /**
+ * This is, if dsi_display_created != 0,
+ * the:
+ * - the own fetched display (XopenDisplay)
+ *
+ * This ressource is fetched manually !
+ *
+ * Otherwise (dsi_display_created==0),
+ * this is just the backup
+ * of the dsi_os->display, of the last lock !
+ */
+ void * dsi_display;
+ int dsi_display_created;
+
+ jint lock;
+
+ /* this JAWTDataHolder is a NOT a holder for a true JAWT
+ * component, it is used for an offScreen drawable !
+ */
+ jint offScreen;
+
+ jboolean result;
+ } JAWTDataHolder;
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_create_offscreen (JNIEnv *env, JAWTDataHolder **ppJData,
+ jboolean verbose);
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_create_open (JNIEnv *env, jobject component, JAWTDataHolder **ppJData, jboolean verbose);
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_free_close_unlock (JNIEnv *env, JAWTDataHolder **ppJData, jboolean verbose);
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_open (JNIEnv *env, jobject component, JAWTDataHolder *pJData, jboolean verbose);
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_close_unlock (JNIEnv *env, JAWTDataHolder *pJData, jboolean verbose);
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_lock (JNIEnv *env, JAWTDataHolder *pJData, jboolean ignoreSurfaceChanged,
+ jboolean verbose);
+
+ LIBAPI jboolean LIBAPIENTRY
+ jawt_unlock (JNIEnv *env, JAWTDataHolder *pJData, jboolean verbose);
+#endif