diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/WidgetInfo.h | 8 |
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. */ |