aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/WidgetInfo.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/generic/WidgetInfo.h b/generic/WidgetInfo.h
index 8483dca..6851f65 100644
--- a/generic/WidgetInfo.h
+++ b/generic/WidgetInfo.h
@@ -48,6 +48,7 @@
#define ZN_PRINT_CONFIG (1<<11) /* If set the openGL hardware configuration
* is printed on startup. */
#define ZN_CONFIGURE_EVENT (1<<12)
+#define ZN_UPDATE_CANVASTEX (1<<13)
#ifdef __CPLUSPLUS__
extern "C" {
@@ -120,6 +121,11 @@ typedef struct _ZnWInfo {
* is updated when items are changed. */
Pixmap alpha_stipples[ZN_NUM_ALPHA_STEPS];
int border_width;
+#if defined(GL) && defined(ROTATION)
+ double screen_rotation;
+ unsigned int enable_rotation;
+ ZnTransfo rotation_transfo;
+#endif
int opt_width; /* Window size as stated/reported by the option. */
int opt_height; /* They are equal to the width/height fields after
* the actual resize. They may to be equal if
@@ -179,7 +185,13 @@ typedef struct _ZnWInfo {
int width; /* Actual window dimension. */
int height;
int inset; /* Border and highlight width */
-
+#if defined(GL) && defined(ROTATION)
+ int canvastex; /* The intermediate canvas texture */
+ int fbo;
+ int depthstencil;
+ ZnPoint texcoords[4];
+#endif
+
/* Graphic variables */
Display *dpy; /* The display of the widget window. */
Screen *screen;