summaryrefslogtreecommitdiff
path: root/modules/stars/starslib.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-01-09 00:53:57 -0800
committerGitHub <noreply@github.com>2017-01-09 00:53:57 -0800
commit6e284f6cfda2b436e7871d34367c3478aa211942 (patch)
treec84a80e4252291882dc0dc972dd1e42f222a2ede /modules/stars/starslib.h
parentbc0ea63460100f61e6c6b73abe20c1f4ffae5db4 (diff)
parentc8b77543492c56b747394e2a460074febeaaeab5 (diff)
Merge pull request #4 from ph1l/stars
stars: add starfield simulator from ph1l/stars
Diffstat (limited to 'modules/stars/starslib.h')
-rw-r--r--modules/stars/starslib.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/stars/starslib.h b/modules/stars/starslib.h
new file mode 100644
index 0000000..0c125a3
--- /dev/null
+++ b/modules/stars/starslib.h
@@ -0,0 +1,19 @@
+struct universe
+{
+ int width, height, depth;
+ struct points* points;
+ struct points* iterator;
+};
+
+void new_universe( struct universe** u, int width, int height, int depth );
+void new_point( struct universe* universe );
+
+#define OPACITY_MAX 8
+struct return_point
+{
+ int x, y;
+ int opacity;
+};
+
+int process_point( struct universe *u, struct return_point *rp );
+
© All Rights Reserved