2025-10-13 21:18:09 +02:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2025-10-14 04:11:36 +02:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
2025-10-14 16:32:45 +02:00
|
|
|
struct color {
|
|
|
|
unsigned char r,g,b,a;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct image {
|
|
|
|
size_t width, height, bufsize;
|
|
|
|
union {uint32_t *buf; struct color *color;};
|
|
|
|
};
|
2025-10-14 04:11:36 +02:00
|
|
|
|
|
|
|
#endif // GAME_H
|
|
|
|
|