papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
background.c File Reference

Functions

void load_map_bg (char *optAssetName)
 
void reset_background_settings (void)
 
void set_background (BackgroundHeader *bg)
 
void set_background_size (s16 startX, s16 startY, s16 sizeX, s16 sizeY)
 
u16 blend_background_channel (u16 arg0, s32 arg1, s32 alpha)
 
void appendGfx_background_texture (void)
 
void enable_background_wave (void)
 
void disable_background_wave (void)
 

Variables

char gCloudyFlowerFieldsBg [] = "fla_bg"
 
char gSunnyFlowerFieldsBg [] = "flb_bg"
 
s8 gBackroundWaveEnabled = FALSE
 
s16 gBackroundTextureYOffset = 0
 
f32 gBackroundWavePhase = 0.0f
 
BSS PAL_BIN gBackgroundPalette [256]
 
BSS f32 gBackroundLastScrollValue
 
BSS s32 D_801595A4 [3]
 
BSS s32 D_801595AC
 

Function Documentation

◆ appendGfx_background_texture()

void appendGfx_background_texture ( void )
Bug
xh = 2 * bgXOffset + (bgMinX - 1) * 4
Bug
xh = 2 * bgXOffset + (bgMinX - 1) * 4

Referenced by gfx_draw_background().

◆ blend_background_channel()

u16 blend_background_channel ( u16 arg0,
s32 arg1,
s32 alpha )

◆ disable_background_wave()

void disable_background_wave ( void )

◆ enable_background_wave()

void enable_background_wave ( void )

Referenced by EnableBackgroundWave().

◆ load_map_bg()

◆ reset_background_settings()

◆ set_background()

◆ set_background_size()

void set_background_size ( s16 startX,
s16 startY,
s16 sizeX,
s16 sizeY )

Variable Documentation

◆ D_801595A4

BSS s32 D_801595A4[3]

◆ D_801595AC

BSS s32 D_801595AC

◆ gBackgroundPalette

BSS PAL_BIN gBackgroundPalette[256]

◆ gBackroundLastScrollValue

BSS f32 gBackroundLastScrollValue

◆ gBackroundTextureYOffset

s16 gBackroundTextureYOffset = 0

◆ gBackroundWaveEnabled

◆ gBackroundWavePhase

f32 gBackroundWavePhase = 0.0f

◆ gCloudyFlowerFieldsBg

char gCloudyFlowerFieldsBg[] = "fla_bg"

Referenced by load_map_bg().

◆ gSunnyFlowerFieldsBg

char gSunnyFlowerFieldsBg[] = "flb_bg"

Referenced by load_map_bg().