summaryrefslogtreecommitdiff
path: root/game.h
blob: 0cd8b9362aa80a4b71f2af7ceac4fe4835a0415a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#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