aboutsummaryrefslogtreecommitdiffstats
path: root/make/stub_includes/x11/X11
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-06-15 22:57:38 +0000
committerKenneth Russel <[email protected]>2009-06-15 22:57:38 +0000
commita959c53b7ac91e489bf0959391e892790b9ff248 (patch)
tree4664742a4f9f6daa694364292e376ad2e6ee97d1 /make/stub_includes/x11/X11
parent506b634b780dcd23aa61015c2ceba3e687196abf (diff)
Copied JOGL_2_SANDBOX r1957 on to trunk; JOGL_2_SANDBOX branch is now closed
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1959 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/stub_includes/x11/X11')
-rw-r--r--make/stub_includes/x11/X11/Intrinsic.h1
-rw-r--r--make/stub_includes/x11/X11/X.h35
-rw-r--r--make/stub_includes/x11/X11/Xlib.h1
-rw-r--r--make/stub_includes/x11/X11/Xutil.h37
4 files changed, 74 insertions, 0 deletions
diff --git a/make/stub_includes/x11/X11/Intrinsic.h b/make/stub_includes/x11/X11/Intrinsic.h
new file mode 100644
index 000000000..558d3791b
--- /dev/null
+++ b/make/stub_includes/x11/X11/Intrinsic.h
@@ -0,0 +1 @@
+#include <X11/X.h>
diff --git a/make/stub_includes/x11/X11/X.h b/make/stub_includes/x11/X11/X.h
new file mode 100644
index 000000000..239836ee4
--- /dev/null
+++ b/make/stub_includes/x11/X11/X.h
@@ -0,0 +1,35 @@
+#ifndef _X_H_
+#define _X_H_
+
+typedef struct {} * XID;
+typedef int Bool;
+typedef struct {} Display;
+typedef int Status;
+typedef struct {} Visual;
+typedef unsigned long VisualID;
+typedef XID Colormap;
+typedef XID Cursor;
+typedef XID Drawable;
+typedef XID Font;
+typedef XID GContext;
+typedef XID KeySym;
+typedef XID Pixmap;
+typedef XID Window;
+
+typedef struct __GLXcontextRec *GLXContext;
+//typedef void *GLXContext;
+typedef XID GLXPixmap;
+typedef XID GLXDrawable;
+/* GLX 1.3 and later */
+typedef struct __GLXFBConfigRec *GLXFBConfig;
+//typedef void *GLXFBConfig;
+typedef XID GLXFBConfigID;
+typedef XID GLXContextID;
+typedef XID GLXWindow;
+typedef XID GLXPbuffer;
+
+// Hacks for glXGetProcAddress
+typedef void (*__GLXextFuncPtr)(void);
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+
+#endif /* defined _X_H_ */
diff --git a/make/stub_includes/x11/X11/Xlib.h b/make/stub_includes/x11/X11/Xlib.h
new file mode 100644
index 000000000..558d3791b
--- /dev/null
+++ b/make/stub_includes/x11/X11/Xlib.h
@@ -0,0 +1 @@
+#include <X11/X.h>
diff --git a/make/stub_includes/x11/X11/Xutil.h b/make/stub_includes/x11/X11/Xutil.h
new file mode 100644
index 000000000..32c8d5be5
--- /dev/null
+++ b/make/stub_includes/x11/X11/Xutil.h
@@ -0,0 +1,37 @@
+#ifndef _XUTIL_H_
+#define _XUTIL_H_
+
+#include <X11/X.h>
+#include <X11/Xlib.h>
+
+/*
+ * Information used by the visual utility routines to find desired visual
+ * type from the many visuals a display may support.
+ */
+
+typedef struct {
+ Visual *visual;
+ VisualID visualid;
+ int screen;
+ int depth;
+ int c_class; /* C++ */
+ unsigned long red_mask;
+ unsigned long green_mask;
+ unsigned long blue_mask;
+ int colormap_size;
+ int bits_per_rgb;
+} XVisualInfo;
+
+#define VisualNoMask 0x0
+#define VisualIDMask 0x1
+#define VisualScreenMask 0x2
+#define VisualDepthMask 0x4
+#define VisualClassMask 0x8
+#define VisualRedMaskMask 0x10
+#define VisualGreenMaskMask 0x20
+#define VisualBlueMaskMask 0x40
+#define VisualColormapSizeMask 0x80
+#define VisualBitsPerRGBMask 0x100
+#define VisualAllMask 0x1FF
+
+#endif /* #defined _XUTIL_H_ */