1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef SOFA_CANVAS_H #define SOFA_CANVAS_H #include "color.h" #include <glad/gl.h> #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