X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.h;h=26b3b6315a1bf4b3bc931ca6bf5d4361b12f62ae;hp=a76951dbecc0c9152778099102896b3644a5682d;hb=3ef599c7104a20c4f5268dbefb6590aa3e285663;hpb=2bea0659b8edff14f1554d2540780f54ccdc21c9 diff --git a/shape.h b/shape.h index a76951d..26b3b63 100644 --- a/shape.h +++ b/shape.h @@ -1,11 +1,17 @@ +#ifndef VOR_SHAPE_H +#define VOR_SHAPE_H + #include #include struct shape { int w, h; - int mw; + int mw; // mask width (number of uint32's) uint32_t *mask; + uint32_t area; }; void get_shape(SDL_Surface *img, struct shape *s); int collide(int xdiff, int ydiff, struct shape *r, struct shape *s); + +#endif // VOR_SHAPE_H