Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
data/indicators/life.png: now built by povray from ship graphic.
[vor.git]
/
shape.h
diff --git a/shape.h
b/shape.h
new file mode 100644
(file)
index 0000000..
c9a43fa
--- /dev/null
+++ b/
shape.h
@@ -0,0
+1,11
@@
+#include <SDL/SDL.h>
+#include <stdint.h>
+
+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);