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

Macros

#define EFFECT_GLOBALS_TLB_IDX   0x10
 
#define FX_ENTRY(name, gfx_name)
 

Typedefs

typedef s8 TlbEntry[0x1000]
 
typedef TlbEntry TlbMappablePage[15]
 

Functions

void stub_effect_delegate (EffectInstance *effect)
 Used for unbound function points in effect structs.
 
void set_effect_pos_offset (EffectInstance *effect, f32 x, f32 y, f32 z)
 
void clear_effect_data (void)
 
void func_80059D48 (void)
 
void update_effects (void)
 
void render_effects_scene (void)
 
void render_effects_UI (void)
 
EffectInstancecreate_effect_instance (EffectBlueprint *effectBp)
 
void remove_effect (EffectInstance *effectInstance)
 
void remove_all_effects (void)
 
s32 load_effect (s32 effectIndex)
 

Variables

BSS EffectSharedData gEffectSharedData [15]
 
EffectInstancegEffectInstances [96]
 
TlbMappablePage gEffectDataBuffer
 
Addr gEffectGlobals
 
s32 D_8007FEB8 [] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 5, 3, 4, 13, 60, 0, 512, 0, 0, 3, 0 }
 

Macro Definition Documentation

◆ EFFECT_GLOBALS_TLB_IDX

#define EFFECT_GLOBALS_TLB_IDX   0x10

Referenced by clear_effect_data().

◆ FX_ENTRY

#define FX_ENTRY ( name,
gfx_name )
Value:
{ \
.entryPoint = name##_main, \
.dmaStart = effect_##name##_ROM_START, \
.dmaEnd = effect_##name##_ROM_END, \
.dmaDest = effect_##name##_VRAM, \
.graphicsDmaStart = gfx_name##_ROM_START, \
.graphicsDmaEnd = gfx_name##_ROM_END, \
}

Typedef Documentation

◆ TlbEntry

typedef s8 TlbEntry[0x1000]

◆ TlbMappablePage

typedef TlbEntry TlbMappablePage[15]

Function Documentation

◆ clear_effect_data()

◆ create_effect_instance()

EffectInstance * create_effect_instance ( EffectBlueprint * effectBp)
Bug
? null check for renderUI instead of renderWorld

◆ func_80059D48()

void func_80059D48 ( void )

◆ load_effect()

s32 load_effect ( s32 effectIndex)

◆ remove_all_effects()

void remove_all_effects ( void )

◆ remove_effect()

void remove_effect ( EffectInstance * effectInstance)

◆ render_effects_scene()

void render_effects_scene ( void )

Referenced by render_frame().

◆ render_effects_UI()

void render_effects_UI ( void )

Referenced by gfx_draw_frame().

◆ set_effect_pos_offset()

void set_effect_pos_offset ( EffectInstance * effect,
f32 x,
f32 y,
f32 z )

◆ stub_effect_delegate()

void stub_effect_delegate ( EffectInstance * effect)

Used for unbound function points in effect structs.

Referenced by create_effect_instance(), and render_effects_UI().

◆ update_effects()

Variable Documentation

◆ D_8007FEB8

s32 D_8007FEB8[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 5, 3, 4, 13, 60, 0, 512, 0, 0, 3, 0 }

◆ gEffectDataBuffer

TlbMappablePage gEffectDataBuffer
extern

Referenced by load_effect().

◆ gEffectGlobals

BSS u8 gEffectGlobals
extern

Referenced by clear_effect_data().

◆ gEffectInstances

◆ gEffectSharedData