Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
demo_api.c File Reference

Go to the source code of this file.

Data Structures

struct  PackedShadingLightSource
 Packed equivalent of SpriteShadingLightSource as baked into the ROM, smaller due to packed position vector. More...
 

Functions

struct PackedShadingLightSource __attribute__ ((packed))
 Packed equivalent of SpriteShadingLightSource as baked into the ROM, smaller due to packed position vector.
 

Variables

Addr sprite_shading_profiles_data_ROM_START
 
s8 flags
 
Color_RGB8 rgb
 
Vec3s pos
 
f32 falloff
 
s8 unk_14
 
char pad_0F [0x1]
 

Data Structure Documentation

◆ PackedShadingLightSource

struct PackedShadingLightSource
Data Fields
s8 flags
Color_RGB8 rgb
Vec3s pos
f32 falloff
s8 unk_14
char pad_0F[0x1]

Function Documentation

◆ __attribute__()

__attribute__ ( (packed) )

Packed equivalent of SpriteShadingLightSource as baked into the ROM, smaller due to packed position vector.

Packed equivalent of SpriteShadingProfile as baked into the ROM

Definition at line 4 of file demo_api.c.

17 {
18 /* 0x00 */ u8 count;
19 /* 0x01 */ char pad_01[0x1];
20 /* 0x02 */ Color_RGB8 ambientColor;
21 /* 0x05 */ u8 ambientPower;
22 /* 0x06 */ PackedShadingLightSource sources[7];
23 /* 0x76 */ char pad_86[0xA];
24} __attribute__((packed)) PackedShadingProfile; // size = 0x100
struct PackedShadingLightSource __attribute__((packed))
Packed equivalent of SpriteShadingLightSource as baked into the ROM, smaller due to packed position v...
Definition demo_api.c:14
Packed equivalent of SpriteShadingLightSource as baked into the ROM, smaller due to packed position v...
Definition demo_api.c:7

Variable Documentation

◆ sprite_shading_profiles_data_ROM_START

Addr sprite_shading_profiles_data_ROM_START
extern

◆ flags

s8 flags

Definition at line 15 of file demo_api.c.

Referenced by appendGfx_background_texture(), appendGfx_model(), appendGfx_nonplayer_actor_blur(), basic_hidden_window_update(), basic_window_update(), bgm_update_music_settings(), bind_trigger(), bind_trigger_1(), btl_set_state(), btl_state_update_enemy_striking_first(), check_for_interactables(), check_input_open_menus(), clear_script_flags(), dispatch_damage_event_player(), draw_box(), draw_msg(), filemenu_draw_contents_choose_name(), filemenu_draw_message(), filemenu_update_hidden_with_rotation(), filemenu_update_show_with_rotation(), func_8013A4D0(), func_80144E4C(), func_E00D8630(), hud_element_free(), hud_element_set_flags(), hud_element_update(), imgfx_get_free_instances(), imgfx_set_state_flags(), imgfx_update(), is_actor_health_bar_visible(), is_actortype_health_bar_visible(), make_npcs(), mdl_group_set_visibility(), modify_collider_family_flags(), msg_get_draw_char_width(), msg_get_print_char_width(), npc_raycast_general(), pause_tabs_update(), pause_update_page_active_1(), pause_update_page_active_2(), pause_update_page_inactive_1(), pause_update_page_inactive_2(), render_hud_elements_backUI(), render_hud_elements_frontUI(), render_transformed_hud_elements(), render_window_root(), render_windows(), replace_window_update(), set_item_entity_flags(), set_part_flag_bits(), set_player_imgfx_comp(), set_script_flags(), set_window_update(), set_windows_visible(), sfx_compute_spatialized_sound_params_full(), sfx_get_spatialized_sound_params(), sfx_play_sound_at_npc(), sfx_play_sound_at_player(), sfx_play_sound_at_position(), sfx_register_looping_sound_at_position(), shape_spell_update(), sprite_shading_set_light_source(), start_child_script(), start_script(), start_script_in_group(), step_mesh_animator(), step_model_animator(), update_all_status_icons(), update_item_entity_pickup(), update_window_hierarchy(), and update_windows().

◆ rgb

Definition at line 16 of file demo_api.c.

Referenced by floating_flower_appendGfx(), and render_curtains().

◆ pos

◆ falloff

f32 falloff

Definition at line 18 of file demo_api.c.

Referenced by sprite_shading_set_light_source().

◆ unk_14

◆ pad_0F

char pad_0F[0x1]

Definition at line 20 of file demo_api.c.