-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
somewhat document bg palette effects
- Loading branch information
1 parent
45f3056
commit a342d22
Showing
15 changed files
with
384 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef GUARD_BACKGROUNDS_H | ||
#define GUARD_BACKGROUNDS_H | ||
|
||
#include "global.h" | ||
#include "sprite.h" | ||
|
||
typedef struct { | ||
u8 unk0; | ||
u8 bgPalId; | ||
u8 cursor; | ||
|
||
const u8 *pattern; | ||
|
||
const u16 *palette; | ||
|
||
u8 unkC; | ||
u8 unkD; | ||
u8 unkE; | ||
|
||
s8 rShift; | ||
s8 gShift; | ||
s8 bShift; | ||
s8 unk12; | ||
|
||
u8 unk13; | ||
|
||
u16 palBuffer[16]; | ||
|
||
s16 offset; | ||
u8 unk36; | ||
} BgPaletteEffectState; | ||
|
||
typedef struct { | ||
BgPaletteEffectState *state; | ||
Background *background; | ||
} BackgroundPaletteEffects; | ||
|
||
extern BackgroundPaletteEffects gBgPaletteEffects; | ||
|
||
void BgPaletteEffectGradient(int_vcount vcount); | ||
|
||
#endif // GUARD_BACKGROUNDS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.