X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.h;h=26b3b6315a1bf4b3bc931ca6bf5d4361b12f62ae;hp=c9a43fab48acc003c9d7084076bb7a9ad1b65294;hb=9f0bc6ef9620912ca42eca9c3f4b6ca10dba35ce;hpb=8193e09e49bc571f9c61e6e3adf45010271c08d5 diff --git a/shape.h b/shape.h index c9a43fa..26b3b63 100644 --- a/shape.h +++ b/shape.h @@ -1,11 +1,17 @@ +#ifndef VOR_SHAPE_H +#define VOR_SHAPE_H + #include #include struct shape { - uint32_t w, h; - uint32_t mw; + int w, h; + 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