summaryrefslogtreecommitdiff
path: root/src/modules/stars/starslib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/stars/starslib.h')
-rw-r--r--src/modules/stars/starslib.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/modules/stars/starslib.h b/src/modules/stars/starslib.h
new file mode 100644
index 0000000..0c125a3
--- /dev/null
+++ b/src/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