forked from snesrev/zelda3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_gfx.h
162 lines (160 loc) · 6.06 KB
/
load_gfx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#pragma once
enum {
kSrmOffs_Gloves = 0x354,
kSrmOffs_Sword = 0x359,
kSrmOffs_Shield = 0x35a,
kSrmOffs_Armor = 0x35b,
kSrmOffs_DiedCounter = 0x405,
kSrmOffs_Name = 0x3d9,
kSrmOffs_Health = 0x36c,
};
const uint16 *GetFontPtr();
void ApplyPaletteFilter_bounce();
void PaletteFilter_Range(int from, int to);
void PaletteFilter_IncrCountdown();
uint8 *LoadItemAnimationGfxOne(uint8 *dst, int num, int r12, bool from_temp);
uint16 snes_divide(uint16 dividend, uint8 divisor);
void EraseTileMaps_normal();
void DecompAndUpload2bpp(uint8 pack);
void RecoverPegGFXFromMapping();
void LoadOverworldMapPalette();
void EraseTileMaps_triforce();
void EraseTileMaps_dungeonmap();
void EraseTileMaps(uint16 r2, uint16 r0);
void EnableForceBlank();
void LoadItemGFXIntoWRAM4BPPBuffer();
void DecompressSwordGraphics();
void DecompressShieldGraphics();
void DecompressAnimatedDungeonTiles(uint8 a);
void DecompressAnimatedOverworldTiles(uint8 a);
void LoadItemGFX_Auxiliary();
void LoadFollowerGraphics();
void WriteTo4BPPBuffer_at_7F4000(uint8 a);
void DecodeAnimatedSpriteTile_variable(uint8 a);
void Expand3To4High(uint8 *dst, const uint8 *src, const uint8 *base, int num);
void LoadTransAuxGFX();
void LoadTransAuxGFX_sprite();
void Gfx_LoadSpritesInner(uint8 *dst);
void ReloadPreviouslyLoadedSheets();
void Attract_DecompressStoryGFX();
void AnimateMirrorWarp();
void AnimateMirrorWarp_DecompressNewTileSets();
void Graphics_IncrementalVRAMUpload();
void PrepTransAuxGfx();
void Do3To4High16Bit(uint8 *dst, const uint8 *src, int num);
void Do3To4Low16Bit(uint8 *dst, const uint8 *src, int num);
void LoadNewSpriteGFXSet();
void InitializeTilesets();
void LoadDefaultGraphics();
void Attract_LoadBG3GFX();
void LoadCommonSprites_2();
void Graphics_LoadChrHalfSlot();
void TransferFontToVRAM();
void LoadSpriteGraphics(int gfx_pack, uint8 *decomp_addr);
void Do3To4High(const uint8 *decomp_addr);
void LoadBackgroundGraphics(int gfx_pack, int slot, uint8 *decomp_addr);
void Do3To4Low(const uint8 *decomp_addr);
void LoadCommonSprites();
int Decomp_spr(uint8 *dst, int gfx);
int Decomp_bg(uint8 *dst, int gfx);
int Decompress(uint8 *dst, const uint8 *src);
void ResetHUDPalettes4and5();
void PaletteFilterHistory();
void PaletteFilter_WishPonds();
void PaletteFilter_Crystal();
void PaletteFilter_WishPonds_Inner();
void PaletteFilter_RestoreSP5F();
void PaletteFilter_SP5F();
void KholdstareShell_PaletteFiltering();
void AgahnimWarpShadowFilter(int k);
void Palette_FadeIntroOneStep();
void Palette_FadeIntro2();
void PaletteFilter_RestoreAdditive(int from, int to);
void PaletteFilter_RestoreSubtractive(uint16 from, uint16 to);
void PaletteFilter_InitializeWhiteFilter();
void MirrorWarp_RunAnimationSubmodules();
void PaletteFilter_BlindingWhite();
void PaletteFilter_StartBlindingWhite();
void PaletteFilter_BlindingWhiteTriforce();
void PaletteFilter_WhirlpoolBlue();
void PaletteFilter_IsolateWhirlpoolBlue();
void PaletteFilter_WhirlpoolRestoreBlue();
void PaletteFilter_WhirlpoolRestoreRedGreen();
void PaletteFilter_RestoreBGSubstractiveStrict();
void PaletteFilter_RestoreBGAdditiveStrict();
void Trinexx_FlashShellPalette_Red();
void Trinexx_UnflashShellPalette_Red();
void Trinexx_FlashShellPalette_Blue();
void Trinexx_UnflashShellPalette_Blue();
void IrisSpotlight_close();
void Spotlight_open();
void SpotlightInternal(uint8 x, uint8 y);
void IrisSpotlight_ConfigureTable();
void IrisSpotlight_ResetTable();
uint16 IrisSpotlight_CalculateCircleValue(uint8 a);
void AdjustWaterHDMAWindow();
void AdjustWaterHDMAWindow_X(uint16 r10);
void FloodDam_PrepFloodHDMA();
void ResetStarTileGraphics();
void Dungeon_RestoreStarTileChr();
void LinkZap_HandleMosaic();
void Player_SetCustomMosaicLevel(uint8 a);
void Module07_16_UpdatePegs_Step1();
void Module07_16_UpdatePegs_Step2();
void Dungeon_UpdatePegGFXBuffer(int x, int y);
void Dungeon_HandleTranslucencyAndPalette();
void Overworld_LoadAllPalettes();
void Dungeon_LoadPalettes();
void Overworld_LoadPalettesInner();
void OverworldLoadScreensPaletteSet();
void Overworld_LoadAreaPalettesEx(uint8 x);
void SpecialOverworld_CopyPalettesToCache();
void Overworld_CopyPalettesToCache();
void Overworld_LoadPalettes(uint8 bg, uint8 spr);
void Palette_BgAndFixedColor_Black();
void Palette_SetBgAndFixedColor(uint16 color);
void SetBackdropcolorBlack();
void Palette_SetOwBgColor();
void Palette_SpecialOw();
uint16 Palette_GetOwBgColor();
void Palette_AssertTranslucencySwap();
void Palette_SetTranslucencySwap(bool v);
void Palette_RevertTranslucencySwap();
void LoadActualGearPalettes();
void Palette_ElectroThemedGear();
void LoadGearPalettes_bunny();
void LoadGearPalettes(uint8 sword, uint8 shield, uint8 armor);
void LoadGearPalette(int dst, const uint16 *src, int n);
void Filter_Majorly_Whiten_Bg();
uint16 Filter_Majorly_Whiten_Color(uint16 c);
void Palette_Restore_BG_From_Flash();
void Palette_Restore_Coldata();
void Palette_Restore_BG_And_HUD();
void Palette_Load_SpritePal0Left();
void Palette_Load_SpriteMain();
void Palette_Load_SpriteAux1();
void Palette_Load_SpriteAux2();
void Palette_Load_Sword();
void Palette_Load_Shield();
void Palette_Load_SpriteEnvironment();
void Palette_Load_SpriteEnvironment_Dungeon();
void Palette_MiscSprite_Outdoors();
void Palette_Load_DungeonMapSprite();
void Palette_Load_LinkArmorAndGloves();
void Palette_UpdateGlovesColor();
void Palette_Load_DungeonMapBG();
void Palette_Load_HUD();
void Palette_Load_DungeonSet();
void Palette_Load_OWBG3();
void Palette_Load_OWBGMain();
void Palette_Load_OWBG1();
void Palette_Load_OWBG2();
void Palette_LoadSingle(const uint16 *src, int dst, int x_ents);
void Palette_LoadMultiple(const uint16 *src, int dst, int x_ents, int y_pals);
void Palette_LoadMultiple_Arbitrary(const uint16 *src, int dst, int x_ents);
void Palette_LoadForFileSelect();
void Palette_LoadForFileSelect_Armor(int k, uint8 armor, uint8 gloves);
void Palette_LoadForFileSelect_Sword(int k, uint8 sword);
void Palette_LoadForFileSelect_Shield(int k, uint8 shield);
void Palette_LoadAgahnim();
void HandleScreenFlash();