X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fmask.h;h=b18baffc953e20f6e8a569cb645324bbc6567d78;hb=d3dd25a55cf7e1837eaf45b04ed2d20392eb559b;hp=90a622b3fe39353292680e4230e5e3f19391f190;hpb=05145e157f0ea31eeab89cda3b1fb44234402a12;p=chaz%2Fopenbox diff --git a/render/mask.h b/render/mask.h index 90a622b3..b18baffc 100644 --- a/render/mask.h +++ b/render/mask.h @@ -1,11 +1,13 @@ #ifndef __mask_h #define __mask_h -#include +#include "render.h" +#include "kernel/geom.h" -typedef struct { - Pixmap mask; - guint w, h; -} pixmap_mask; +RrPixmapMask *RrPixmapMaskNew(const RrInstance *inst, + gint w, gint h, const gchar *data); +void RrPixmapMaskFree(RrPixmapMask *m); +RrPixmapMask *RrPixmapMaskCopy(const RrPixmapMask *src); +void RrPixmapMaskDraw(Pixmap p, const RrTextureMask *m, const Rect *area); #endif