From cb98dd20e9e0f92995a6fd1177ef1676a55e401b Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 23 Jan 2007 12:41:57 +0000 Subject: Patch for canvas rotation --- generic/WidgetInfo.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'generic/WidgetInfo.h') 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; -- cgit v1.1