diff options
author | lecoanet | 2007-01-23 12:41:57 +0000 |
---|---|---|
committer | lecoanet | 2007-01-23 12:41:57 +0000 |
commit | cb98dd20e9e0f92995a6fd1177ef1676a55e401b (patch) | |
tree | d94ff31fbb7b55c6847a943e770611567da4124d /generic | |
parent | cbbc11fec7a21b307f4229fc66c456fd2fffcd43 (diff) | |
download | tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.zip tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.tar.gz tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.tar.bz2 tkzinc-cb98dd20e9e0f92995a6fd1177ef1676a55e401b.tar.xz |
Patch for canvas rotation
Diffstat (limited to 'generic')
-rw-r--r-- | generic/WidgetInfo.h | 14 |
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; |