aboutsummaryrefslogtreecommitdiff
path: root/generic/WidgetInfo.h
diff options
context:
space:
mode:
authorlecoanet2001-03-14 15:27:31 +0000
committerlecoanet2001-03-14 15:27:31 +0000
commitae81b4f7ab644ab561c248ab55a67b01313a5239 (patch)
tree4ad2721807210e013e512634c82434ac37ef9c12 /generic/WidgetInfo.h
parent74a5d68d088a0a70da9d70d7c491daddac9d5080 (diff)
downloadtkzinc-ae81b4f7ab644ab561c248ab55a67b01313a5239.zip
tkzinc-ae81b4f7ab644ab561c248ab55a67b01313a5239.tar.gz
tkzinc-ae81b4f7ab644ab561c248ab55a67b01313a5239.tar.bz2
tkzinc-ae81b4f7ab644ab561c248ab55a67b01313a5239.tar.xz
Modifs pour int�grer le test de GLX.
Diffstat (limited to 'generic/WidgetInfo.h')
-rw-r--r--generic/WidgetInfo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/WidgetInfo.h b/generic/WidgetInfo.h
index 16e27c8..ba3e780 100644
--- a/generic/WidgetInfo.h
+++ b/generic/WidgetInfo.h
@@ -36,6 +36,9 @@
#ifdef SHM
#include <X11/extensions/XShm.h>
#endif
+#ifdef GLX
+#include <GL/glx.h>
+#endif
#include "Item.h"
#include "Transfo.h"
@@ -194,9 +197,14 @@ typedef struct _WidgetInfo {
RenderBuf buf;
#endif
#endif
+#ifdef GLX
+ GLXContext gl_context;
+ XVisualInfo *gl_visual;
+#endif
Pixmap draw_buffer; /* Pixmap for double buffering */
ZnBBox damaged_area; /* The current damaged rectangle */
GC gc;
+ ZnBool has_glx; /* Tell if openGL can be used. */
ZnBool has_x_shm; /* Tell if the SHM X11 ext is avail. */
ZnBool has_x_shape; /* Tell if the X shape ext. is avail. */
ZnBool has_x_input; /* Tell if the X input ext. is avail. */