summaryrefslogtreecommitdiff
path: root/include/bg_window.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-05 16:55:46 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-05 16:55:46 -0400
commitc87b617058767519480ef2d19e233fe0e99ca01d (patch)
tree690c7ca357b58415f85c754048e90b1e693df945 /include/bg_window.h
parent0ae4f320d929e4d8914002836055c1aad35d5ce3 (diff)
Fix GX_vramcnt symbol names
Diffstat (limited to 'include/bg_window.h')
-rw-r--r--include/bg_window.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/bg_window.h b/include/bg_window.h
index 91026b4d..24ed152b 100644
--- a/include/bg_window.h
+++ b/include/bg_window.h
@@ -12,10 +12,10 @@
struct BgTemplate
{
- u32 unk00;
- u32 unk04;
+ u32 x;
+ u32 y;
u32 bufferSize;
- u32 unk0c;
+ u32 baseTile;
u8 size;
u8 colorMode;
@@ -85,10 +85,16 @@ struct Window
u8 height;
u8 paletteNum;
u16 baseTile : 15;
- u16 unk0b_15 : 1;
+ u16 colorMode : 1;
void *pixelBuffer;
};
+enum GFBppMode
+{
+ GF_BG_CLR_4BPP = 0,
+ GF_BG_CLR_8BPP,
+};
+
enum GFBgLayer
{
GF_BG_LYR_MAIN_0 = 0,
@@ -112,6 +118,8 @@ enum GFBgLayer
GF_BG_LYR_SUB_1_F = 1 << (GF_BG_LYR_SUB_1 - GF_BG_LYR_SUB_FIRST),
GF_BG_LYR_SUB_2_F = 1 << (GF_BG_LYR_SUB_2 - GF_BG_LYR_SUB_FIRST),
GF_BG_LYR_SUB_3_F = 1 << (GF_BG_LYR_SUB_3 - GF_BG_LYR_SUB_FIRST),
+
+ GF_BG_LYR_UNALLOC = 0xFF,
};
enum GFBgType