summaryrefslogtreecommitdiff
path: root/surface.h
diff options
context:
space:
mode:
authorZack Rusin <zack@ppc64.localdomain>2006-03-16 16:50:29 -0500
committerZack Rusin <zack@ppc64.localdomain>2006-03-16 16:50:29 -0500
commit8304ea4eaa75de4d1de3a3e399930c56ceff78d4 (patch)
tree4b67712ddb5822952f6bf0ca5e0c8c1034fab66c /surface.h
parent4a808117dc21de9c94418912666405f8cfb3754e (diff)
better blending
Diffstat (limited to 'surface.h')
-rw-r--r--surface.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/surface.h b/surface.h
index 0c1a191..02d8e1f 100644
--- a/surface.h
+++ b/surface.h
@@ -6,6 +6,13 @@
class QImage;
+typedef enum _SurfaceFilter {
+ SurfaceNone,
+ SurfaceNearest,
+ SurfaceBilinear,
+ SurfaceConvolution
+} SurfaceFilter;
+
typedef struct _XRenderSurf {
int w, h;
int depth;
@@ -21,9 +28,9 @@ XRenderSurf *xrender_surf_adopt(Display *disp, Drawable draw, Visual *vis, int w
void xrender_surf_free(Display *disp, XRenderSurf *rs);
void xrender_surf_populate(Display *disp, XRenderSurf *rs, int w, int h,
const QImage &img_data);
-void xrender_surf_blend(Display *disp, XRenderSurf *src, XRenderSurf *dst,
- int x, int y, int w, int h, int smooth);
-void xrender_surf_simple_blend(Display *disp, int op, XRenderSurf *src, XRenderSurf *dst,
- int x, int y, int w, int h, int transformations);
+void xrender_surf_prepare(Display *disp, XRenderSurf *src, int w, int h,
+ int transformations, SurfaceFilter filter);
+void xrender_surf_blend(Display *disp, int op, XRenderSurf *src, XRenderSurf *dst,
+ int x, int y, int w, int h);
#endif