aboutsummaryrefslogtreecommitdiff
path: root/mons_image/include/image.h
blob: 8b258aa6c13a9967f614171964c469eda1e2eae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MONS_IMAGE_H
#define MONS_IMAGE_H

typedef struct mons_pixel {
    unsigned char r;
    unsigned char g;
    unsigned char b;
    unsigned char a;
} mons_pixel;

typedef struct mons_image {
    unsigned int width;
    unsigned int height;
    mons_pixel *data;
} mons_image;

void mons_image_free(mons_image *image);

#endif