~mika/sofa

ref: 0646871a3b71d14d3dd9f39367be1ceff3794b8c sofa/canvas.h -rw-r--r-- 236 bytes
0646871a — m1ka sofa sitting 27 days ago
                                                                                
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