diff options
author | Philip J Freeman <elektron@halo.nu> | 2019-12-16 16:15:27 -0800 |
---|---|---|
committer | Philip J Freeman <elektron@halo.nu> | 2019-12-30 14:02:32 -0800 |
commit | ebaacbbb4af1e4445c015f7133b337b698185ba7 (patch) | |
tree | 6d579b008be452ee83dd9908070aa698fa8c071a /src/modules/stars/starslib.h | |
parent | 036f737f7201cb9f2ae9502088773a066f168303 (diff) |
stars: fix bugs, big refactor for resizing
- use a context not globals
- use floats and a "unit cube" to simulate the starfield
Diffstat (limited to 'src/modules/stars/starslib.h')
-rw-r--r-- | src/modules/stars/starslib.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/modules/stars/starslib.h b/src/modules/stars/starslib.h deleted file mode 100644 index 0c125a3..0000000 --- a/src/modules/stars/starslib.h +++ /dev/null @@ -1,19 +0,0 @@ -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 ); - |