2023-08-30 04:38:07 +00:00
|
|
|
#ifndef GUARD_BG_CONTROL_H
|
|
|
|
#define GUARD_BG_CONTROL_H
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
BG0,
|
|
|
|
BG1,
|
|
|
|
BG2,
|
|
|
|
BG3,
|
|
|
|
NUM_BGS
|
|
|
|
};
|
|
|
|
|
2023-09-02 11:43:05 +00:00
|
|
|
typedef struct BGControlStruct
|
2023-08-30 04:38:07 +00:00
|
|
|
{
|
|
|
|
u16 padding;
|
|
|
|
u16 unk2;
|
|
|
|
s16 hofs;
|
|
|
|
s16 vofs;
|
2023-09-02 11:43:05 +00:00
|
|
|
} BGControlStruct;
|
2023-08-30 04:38:07 +00:00
|
|
|
|
2023-09-02 11:43:05 +00:00
|
|
|
extern BGControlStruct gBG0Control;
|
|
|
|
extern BGControlStruct gBG1Control;
|
|
|
|
extern BGControlStruct gBG2Control;
|
|
|
|
extern BGControlStruct gBG3Control;
|
2023-08-30 04:38:07 +00:00
|
|
|
extern u16 gBldAlpha;
|
|
|
|
extern u16 gBldCnt;
|
|
|
|
extern bool8 gUnknown_202D7FE;
|
|
|
|
|
|
|
|
void SetBG2RegOffsets(s32, s32);
|
|
|
|
void SetBG3RegOffsets(s32, s32);
|
|
|
|
void SetBGOBJEnableFlags(u32);
|
|
|
|
void SetBldAlphaReg(s32, s32);
|
|
|
|
void sub_800CD64(s32, bool8);
|
|
|
|
|
|
|
|
#endif // GUARD_BG_CONTROL_H
|