X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fmask.h;h=4d2144e2117b446b3ca3d87a640ca55fb2b629a6;hb=39946832001bd205f764a36fbdae17bc53d1fb35;hp=2eed4c0763272d4eaaff7976e19f56d37b7c099c;hpb=1f63f7b331887a192ddf927670471c3f00f307f5;p=chaz%2Fopenbox diff --git a/render/mask.h b/render/mask.h index 2eed4c07..4d2144e2 100644 --- a/render/mask.h +++ b/render/mask.h @@ -1,9 +1,10 @@ #ifndef __mask_h #define __mask_h -typedef struct { - Pixmap mask; - guint w, h; -} pixmap_mask; +#include "render.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); #endif