diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-12-07 20:20:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-07 20:20:57 -0500 |
commit | f21b113bc6caee136d696aadfe8dc13d6e8f3622 (patch) | |
tree | dfa380ca2de409279e0ee0c7ecc06d704a84858a /include/gba/defines.h | |
parent | 22a73c654b33878d8861109a3898bddc0d30c6b3 (diff) | |
parent | 88fae7ed40e47eff562b70cd0a504aeed5bb7102 (diff) |
Merge pull request #177 from ghoulslash/battle-anim
battle_anim*
Diffstat (limited to 'include/gba/defines.h')
-rw-r--r-- | include/gba/defines.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/gba/defines.h b/include/gba/defines.h index 8c92d7b64..9e822358a 100644 --- a/include/gba/defines.h +++ b/include/gba/defines.h @@ -73,10 +73,18 @@ #define TOTAL_OBJ_TILE_COUNT 1024 #define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10)) +#define RGB2(r, g, b) (((b) << 10) | ((g) << 5) | (r)) +#define _RGB(r, g, b) ((((b) & 0x1F) << 10) + (((g) & 0x1F) << 5) + ((r) & 0x1F)) #define RGB_BLACK RGB(0, 0, 0) #define RGB_WHITE RGB(31, 31, 31) -#define RGB_WHITEALPHA (0xFFFF) +#define RGB_RED RGB(31, 0, 0) +#define RGB_GREEN RGB(0, 31, 0) +#define RGB_BLUE RGB(0, 0, 31) +#define RGB_YELLOW RGB(31, 31, 0) +#define RGB_MAGENTA RGB(31, 0, 31) +#define RGB_CYAN RGB(0, 31, 31) +#define RGB_WHITEALPHA (RGB_WHITE | 0x8000) #define NAKED __attribute__((naked)) #define UNUSED __attribute__((unused)) |