diff options
Diffstat (limited to 'modules/stars/starslib.h')
-rw-r--r-- | modules/stars/starslib.h | 19 |
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 ); + |