19 lines
234 B
C
19 lines
234 B
C
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifndef GAME_H
|
|
#define GAME_H
|
|
|
|
struct color {
|
|
unsigned char r,g,b,a;
|
|
};
|
|
|
|
struct image {
|
|
size_t width, height, bufsize;
|
|
union {uint32_t *buf; struct color *color;};
|
|
};
|
|
|
|
#endif // GAME_H
|
|
|