gba-trycatch

view src/palman.h @ 9:b0ed38f13261

working on the rasterizer
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 05:16:10 +0300
parents
children 23f716fa7f10
line source
1 #ifndef PALMAN_H_
2 #define PALMAN_H_
4 #define RGBPAL(r, g, b) \
5 (((r) & 0xe0) | (((g) >> 3) & 0x1c) | (((b) >> 6) & 0x3))
7 #define GET_R_PAL(c) ((c) & 0xe0)
8 #define GET_G_PAL(c) (((c) & 0x1c) << 3)
9 #define GET_B_PAL(c) (((c) & 0x3) << 6)
11 void palman_init(void);
13 #endif /* PALMAN_H_ */