diff options
author | Zack Rusin <zack@ppc64.localdomain> | 2006-03-16 16:50:29 -0500 |
---|---|---|
committer | Zack Rusin <zack@ppc64.localdomain> | 2006-03-16 16:50:29 -0500 |
commit | 8304ea4eaa75de4d1de3a3e399930c56ceff78d4 (patch) | |
tree | 4b67712ddb5822952f6bf0ca5e0c8c1034fab66c /surface.h | |
parent | 4a808117dc21de9c94418912666405f8cfb3754e (diff) |
better blending
Diffstat (limited to 'surface.h')
-rw-r--r-- | surface.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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 |