X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fmask.h;h=9328daf154997269549221597e7abbb767c8cce1;hb=5cf61ee02354c1c9f80c11f3796afc4b948055d6;hp=90a622b3fe39353292680e4230e5e3f19391f190;hpb=05145e157f0ea31eeab89cda3b1fb44234402a12;p=chaz%2Fopenbox diff --git a/render/mask.h b/render/mask.h index 90a622b3..9328daf1 100644 --- a/render/mask.h +++ b/render/mask.h @@ -1,11 +1,12 @@ #ifndef __mask_h #define __mask_h -#include +#include "render.h" +#include "kernel/geom.h" -typedef struct { - Pixmap mask; - guint w, h; -} pixmap_mask; +pixmap_mask *pixmap_mask_new(int w, int h, char *data); +pixmap_mask *pixmap_mask_copy(pixmap_mask *src); +void pixmap_mask_free(pixmap_mask *m); +void mask_draw(Pixmap p, TextureMask *m, Rect *position); #endif