#ifndef SOFA_CANVAS_H #define SOFA_CANVAS_H #include "color.h" #include #define P2I(w, x, y) (w * y) + x typedef struct { color_t* data; GLint w, h; } canvas_t; canvas_t canvas_create(GLint w, GLint h); #endif