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