From e4abefb29f95ab6218b3f690168a3ba800c7ab89 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 18 Jun 2003 04:35:27 +0000 Subject: [PATCH] add support for render to pixmap --- render2/instance.h | 5 +++++ render2/surface.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/render2/instance.h b/render2/instance.h index de994576..9f0e0d56 100644 --- a/render2/instance.h +++ b/render2/instance.h @@ -28,6 +28,8 @@ struct RrInstance { int green_shift; int blue_shift; + gboolean render_to_pixmap; + GHashTable *surface_map; }; @@ -39,9 +41,12 @@ struct RrInstance { (i)->screen))) #define RrDepth(i) ((i)->visinfo.depth) #define RrVisual(i) ((i)->visinfo.visual) +#define RrVisualInfo(i) (&(i)->visinfo) #define RrColormap(i) ((i)->cmap) #define RrContext(i) ((i)->glx_context) +#define RrRenderToPixmap(i) ((i)->render_to_pixmap) + #define RrShapeWindow(i) ((i)->shape_window) struct RrSurface; diff --git a/render2/surface.h b/render2/surface.h index 39dbffc2..a568fc37 100644 --- a/render2/surface.h +++ b/render2/surface.h @@ -5,6 +5,7 @@ #include "texture.h" #include "planar.h" #include +#include struct RrNonPlanarSurface { int foo; @@ -44,6 +45,8 @@ struct RrSurface { int h; int visible : 1; + Pixmap pixmap; + GLXPixmap glxpixmap; GSList *children; }; @@ -59,7 +62,8 @@ struct RrTexture *RrSurfaceTexture(struct RrSurface *sur, int texnum); #define RrSurfaceY(sur) ((sur)->y) #define RrSurfaceWidth(sur) ((sur)->w) #define RrSurfaceHeight(sur) ((sur)->h) - +#define RrSurfacePixmap(sur) ((sur)->pixmap) +#define RrSurfaceGLXPixmap(sur) ((sur)->glxpixmap) #define RrSurfaceChildren(sur) ((sur)->children) #endif -- 2.39.2