Files
abelian-sandpile/lib.h
Aryadev Chavali 64f8df2592 (main~>lib.h)+header for data structures,~migrate lib.h
+some file handlers for writing and reading (may help with very large
renders by doing them piecemeal when I can)
2023-08-25 19:07:24 +01:00

23 lines
348 B
C

#ifndef LIB_H
#define LIB_H
#include <stdbool.h>
#include <stdlib.h>
typedef struct State
{
// Sandpiles
unsigned char *data;
size_t dwidth;
size_t window_len;
int multiplier;
bool thread_alive;
} state_t;
bool load_from_file(state_t *state, const char *filepath);
bool write_to_file(state_t *state, const char *filepath);
#endif