X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=render%2Fmask.h;h=dccb5a460e73968cdafe59f903f57cecbbd4d77f;hb=5be0a82a353b67160142134de1cc51fa31d72759;hp=43b5dacdbb9e08f9d4b8393d9024b80aab36b7d8;hpb=f1db2721541af239f6af053526abd4cf80b750e0;p=chaz%2Fopenbox diff --git a/render/mask.h b/render/mask.h index 43b5dacd..dccb5a46 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 "geom.h" -pixmap_mask *pixmap_mask_new(int w, int h, char *data); -void pixmap_mask_free(pixmap_mask *m); -void mask_draw(Pixmap p, TextureMask *m, int width, int height); +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 RrRect *area); #endif