X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.h;fp=shape.h;h=c9a43fab48acc003c9d7084076bb7a9ad1b65294;hp=0000000000000000000000000000000000000000;hb=8193e09e49bc571f9c61e6e3adf45010271c08d5;hpb=05bfe1eca8ec4981dc087a97b7dfaa74eb1de59e diff --git a/shape.h b/shape.h new file mode 100644 index 0000000..c9a43fa --- /dev/null +++ b/shape.h @@ -0,0 +1,11 @@ +#include +#include + +struct shape { + uint32_t w, h; + uint32_t mw; + uint32_t *mask; +}; + +void get_shape(SDL_Surface *img, struct shape *s); +int collide(int xdiff, int ydiff, struct shape *r, struct shape *s);