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

Macros

#define UI_NO_CONTROLLER_SIZE   (ui_no_controller_png_width * ui_no_controller_png_height)
 

Functions

 INCLUDE_IMG ("theater/walls.png", theater_walls_png)
 
 INCLUDE_IMG ("theater/curtains.png", theater_curtains_png)
 
 INCLUDE_IMG ("theater/floor.png", theater_floor_png)
 
 INCLUDE_PAL ("theater/floor.pal", theater_floor_pal)
 
 INCLUDE_IMG ("ui/no_controller.png", ui_no_controller_png)
 
BSS UNK_FUN_PTR (gCurtainDrawCallback)
 
void initialize_curtains (void)
 
void update_curtains (void)
 
void render_curtains (void)
 
void set_curtain_scale_goal (f32 scale)
 
void set_curtain_scale (f32 scale)
 
void set_curtain_draw_callback (UNK_FUN_PTR(callback))
 
void set_curtain_fade_goal (f32 fade)
 
void set_curtain_fade (f32 fade)
 

Variables

Gfx D_800746E0 []
 
Gfx D_80075730 []
 
Gfx D_800758A0 []
 
Gfx TheaterWallShadowsGfx []
 
Gfx TheaterCurtainGfx []
 
Gfx TheaterInsetShadowsGfx []
 
Gfx TheaterFloorGfx []
 
Gfx TheaterRightWallGfx []
 
Gfx TheaterLeftWallGfx []
 
Gfx TheaterGfx []
 
Vp TheaterViewport
 
Gfx TheaterInitGfx []
 
Gfx NoControllerSetupTexGfx []
 
Gfx NoControllerGfx []
 
BSS f32 gCurtainScale
 
BSS f32 gCurtainScaleGoal
 
BSS f32 gCurtainFade
 
BSS f32 gCurtainFadeGoal
 
BSS Mtx D_8009BAA8 [2]
 

Macro Definition Documentation

◆ UI_NO_CONTROLLER_SIZE

Referenced by render_curtains().

Function Documentation

◆ INCLUDE_IMG() [1/4]

INCLUDE_IMG ( "theater/curtains.png" ,
theater_curtains_png  )

◆ INCLUDE_IMG() [2/4]

INCLUDE_IMG ( "theater/floor.png" ,
theater_floor_png  )

◆ INCLUDE_IMG() [3/4]

INCLUDE_IMG ( "theater/walls.png" ,
theater_walls_png  )

◆ INCLUDE_IMG() [4/4]

INCLUDE_IMG ( "ui/no_controller.png" ,
ui_no_controller_png  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "theater/floor.pal" ,
theater_floor_pal  )

◆ initialize_curtains()

void initialize_curtains ( void )

◆ render_curtains()

void render_curtains ( void )

Referenced by gfx_draw_frame().

◆ set_curtain_draw_callback()

void set_curtain_draw_callback ( UNK_FUN_PTR(callback) )

◆ set_curtain_fade()

void set_curtain_fade ( f32 fade)

◆ set_curtain_fade_goal()

void set_curtain_fade_goal ( f32 fade)

◆ set_curtain_scale()

void set_curtain_scale ( f32 scale)

◆ set_curtain_scale_goal()

◆ UNK_FUN_PTR()

BSS UNK_FUN_PTR ( gCurtainDrawCallback )

◆ update_curtains()

void update_curtains ( void )

Referenced by step_game_loop().

Variable Documentation

◆ D_800746E0

Gfx D_800746E0[]
Initial value:

◆ D_80075730

◆ D_800758A0

◆ D_8009BAA8

BSS Mtx D_8009BAA8[2]

Referenced by render_curtains().

◆ gCurtainFade

◆ gCurtainFadeGoal

◆ gCurtainScale

◆ gCurtainScaleGoal

◆ NoControllerGfx

Gfx NoControllerGfx[]
Initial value:
= {
gsSPTextureRectangle(0x0180, 0x0260, 0x0380, 0x02E0, G_TX_RENDERTILE, 0, 0, 0x0400, 0x0400),
}

Referenced by render_curtains().

◆ NoControllerSetupTexGfx

◆ TheaterCurtainGfx

Gfx TheaterCurtainGfx[]
Initial value:
= {
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
gsSP2Triangles(15, 16, 17, 0, 15, 17, 18, 0),
gsSP2Triangles(19, 20, 21, 0, 19, 21, 22, 0),
gsSP2Triangles(13, 23, 24, 0, 13, 24, 14, 0),
gsSP2Triangles(23, 25, 26, 0, 23, 26, 24, 0),
gsSP2Triangles(25, 27, 28, 0, 25, 28, 26, 0),
gsSP2Triangles(27, 29, 30, 0, 27, 30, 28, 0),
}
Gfx D_80075730[]
Definition curtains.c:23
#define PM_CC2_MULTIPLY_PRIM
Definition macros.h:316

◆ TheaterFloorGfx

Gfx TheaterFloorGfx[]
Initial value:
= {
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 0, 0, 4, 0, 3, 0),
gsSP2Triangles(1, 6, 7, 0, 1, 7, 2, 0),
gsSP2Triangles(3, 8, 9, 0, 3, 9, 10, 0),
gsSP2Triangles(11, 4, 3, 0, 11, 3, 10, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
gsSP2Triangles(8, 12, 15, 0, 8, 15, 9, 0),
gsSP2Triangles(6, 16, 13, 0, 6, 13, 7, 0),
gsSP2Triangles(14, 17, 18, 0, 19, 14, 18, 0),
gsSP2Triangles(20, 11, 21, 0, 11, 22, 21, 0),
gsSP2Triangles(23, 19, 18, 0, 23, 18, 24, 0),
gsSP2Triangles(22, 23, 24, 0, 22, 24, 21, 0),
}
Gfx D_800746E0[]
Definition curtains.c:13

◆ TheaterGfx

Gfx TheaterGfx[]
Initial value:
={
}
Gfx TheaterInsetShadowsGfx[]
Definition curtains.c:81
Gfx TheaterWallShadowsGfx[]
Definition curtains.c:51
Gfx TheaterRightWallGfx[]
Definition curtains.c:115
Gfx TheaterFloorGfx[]
Definition curtains.c:93
Gfx TheaterLeftWallGfx[]
Definition curtains.c:127
Gfx TheaterCurtainGfx[]
Definition curtains.c:62

Referenced by render_curtains().

◆ TheaterInitGfx

◆ TheaterInsetShadowsGfx

◆ TheaterLeftWallGfx

◆ TheaterRightWallGfx

◆ TheaterViewport

Vp TheaterViewport
Initial value:
= {
{
{(SCREEN_WIDTH/2)*4, (SCREEN_HEIGHT/2)*4, 0x200 - 1, 0},
{(SCREEN_WIDTH/2)*4, (SCREEN_HEIGHT/2)*4, 0x200 - 1, 0},
}
}
#define SCREEN_WIDTH
Definition macros.h:116
#define SCREEN_HEIGHT
Definition macros.h:117

◆ TheaterWallShadowsGfx