X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fmask.h;h=b18baffc953e20f6e8a569cb645324bbc6567d78;hb=dc60657acf0511855d4844a872c9266fc1e63fc9;hp=2d507a63a70957c47581efcf9478ae97c8029f9e;hpb=14f17c96d069f08f73094e66692d57aeffa69f6b;p=chaz%2Fopenbox diff --git a/render/mask.h b/render/mask.h index 2d507a63..b18baffc 100644 --- a/render/mask.h +++ b/render/mask.h @@ -1,12 +1,13 @@ #ifndef __mask_h #define __mask_h -#include -#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