X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fmask.h;h=89716f852f205ff6d03e847ef471053a8b6488e1;hb=c99bb4a049d29d2546074365ab76cecad4d1f65b;hp=103b33d0d2374052c668e03d680569b73b6561b3;hpb=b824e6ad8e359bfd2762a5e35d62e1a1f4c9f20c;p=chaz%2Fopenbox diff --git a/render/mask.h b/render/mask.h index 103b33d0..89716f85 100644 --- a/render/mask.h +++ b/render/mask.h @@ -1,15 +1,12 @@ #ifndef __mask_h #define __mask_h -#include -#include - -typedef struct { - Pixmap mask; - guint w, h; -} pixmap_mask; +#include "render.h" +#include "../kernel/geom.h" pixmap_mask *pixmap_mask_new(int w, int h, char *data); +pixmap_mask *pixmap_mask_copy(pixmap_mask *src); void pixmap_mask_free(pixmap_mask *m); +void mask_draw(Pixmap p, TextureMask *m, Rect *position); #endif