gba-trycatch
annotate 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 |
rev | line source |
---|---|
nuclear@9 | 1 #ifndef PALMAN_H_ |
nuclear@9 | 2 #define PALMAN_H_ |
nuclear@9 | 3 |
nuclear@9 | 4 #define RGBPAL(r, g, b) \ |
nuclear@9 | 5 (((r) & 0xe0) | (((g) >> 3) & 0x1c) | (((b) >> 6) & 0x3)) |
nuclear@9 | 6 |
nuclear@9 | 7 #define GET_R_PAL(c) ((c) & 0xe0) |
nuclear@9 | 8 #define GET_G_PAL(c) (((c) & 0x1c) << 3) |
nuclear@9 | 9 #define GET_B_PAL(c) (((c) & 0x3) << 6) |
nuclear@9 | 10 |
nuclear@9 | 11 void palman_init(void); |
nuclear@9 | 12 |
nuclear@9 | 13 #endif /* PALMAN_H_ */ |