aboutsummaryrefslogtreecommitdiff
path: root/generic/WidgetInfo.h
diff options
context:
space:
mode:
authorlecoanet2007-01-23 12:41:57 +0000
committerlecoanet2007-01-23 12:41:57 +0000
commitcb98dd20e9e0f92995a6fd1177ef1676a55e401b (patch)
treed94ff31fbb7b55c6847a943e770611567da4124d /generic/WidgetInfo.h
parentcbbc11fec7a21b307f4229fc66c456fd2fffcd43 (diff)
downloadtkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.zip
tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.tar.gz
tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.tar.bz2
tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.tar.xz
Patch for canvas rotation
Diffstat (limited to 'generic/WidgetInfo.h')
-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;