Skip to content
Snippets Groups Projects
gol.h 417 B
Newer Older
clemo's avatar
clemo committed
#ifndef GOL_H
#define GOL_H

struct GOL
{
	unsigned int *current;
	unsigned int *next;
	unsigned int width;
	unsigned int height;

clemo's avatar
clemo committed
} typedef gol_t;
clemo's avatar
clemo committed

typedef void (*gol_print_colmn)(unsigned int value);
typedef void (*gol_print_ln)(unsigned int line);

clemo's avatar
clemo committed
gol_t *gol_setup(int width, int height);
void gol_tick(gol_t *g);
void gol_each(gol_t *g, gol_print_colmn colmn, gol_print_ln ln);
void gol_free(gol_t *data);
clemo's avatar
clemo committed
#endif