#include #include #ifndef GRID_H #define GRID_H typedef struct Grid { unsigned int size; unsigned int width; bool* arr; } Grid; void initGrid(Grid* grid, unsigned int width, unsigned int height); unsigned int toIndex(Grid* grid, int x, int y); void clearGrid(Grid* grid); void updateGrid(Grid* grid); void putPixel(Grid* grid, int x, int y); void drawGrid(Grid* grid); #endif