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

Functions

 INCLUDE_IMG ("entity/model/BlueSwitch_tex.png", D_0A0005D0_E63F90)
 
 INCLUDE_PAL ("entity/model/BlueSwitch_tex.pal", D_0A0006D0_E64090)
 
 INCLUDE_IMG ("entity/model/BlueSwitch_exclamationMark.png", D_0A000978_E64338)
 

Variables

Gfx Entity_BlueSwitch_LoadTexture []
 
Gfx Entity_BlueSwitch_LoadExclMark []
 
Mtx Entity_BlueSwitch_mtxExclMark
 
Mtx Entity_BlueSwitch_mtxBlueBubble
 
Gfx Entity_BlueSwitch_RenderBlueBubble []
 
Gfx Entity_BlueSwitch_RenderRotatedBlueBubble []
 
Gfx Entity_BlueSwitch_RenderExclMark []
 
Gfx Entity_BlueSwitch_RenderRotatedExclMark []
 
Gfx Entity_BlueSwitch_RenderBase2 []
 
Gfx Entity_BlueSwitch_RenderBase []
 
Gfx Entity_BlueSwitch_RenderBaseMain []
 
Gfx Entity_BlueSwitch_RenderMain []
 
Gfx Entity_BlueSwitch_Render []
 

Function Documentation

◆ INCLUDE_IMG() [1/2]

INCLUDE_IMG ( "entity/model/BlueSwitch_exclamationMark.png" ,
D_0A000978_E64338  )

◆ INCLUDE_IMG() [2/2]

INCLUDE_IMG ( "entity/model/BlueSwitch_tex.png" ,
D_0A0005D0_E63F90  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/BlueSwitch_tex.pal" ,
D_0A0006D0_E64090  )

Variable Documentation

◆ Entity_BlueSwitch_LoadExclMark

Gfx Entity_BlueSwitch_LoadExclMark[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_NONE),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock_4b(D_0A000978_E64338, G_IM_FMT_IA, 16, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

◆ Entity_BlueSwitch_LoadTexture

Gfx Entity_BlueSwitch_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A0006D0_E64090),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock(D_0A0005D0_E63F90, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

◆ Entity_BlueSwitch_mtxBlueBubble

Mtx Entity_BlueSwitch_mtxBlueBubble
Initial value:
1.000000, 0.000000, 0.000000, -0.026597,
0.000000, 1.000000, 0.000000, 5.000000,
0.000000, 0.000000, 1.000000, 0.609116,
0.000000, 0.000000, 0.000000, 1.000000
)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:244

◆ Entity_BlueSwitch_mtxExclMark

Mtx Entity_BlueSwitch_mtxExclMark
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 6.000000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000
)

◆ Entity_BlueSwitch_Render

Gfx Entity_BlueSwitch_Render[]
Initial value:
= {
gsSPDisplayList(Entity_BlueSwitch_RenderMain),
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_RenderMain[]
Definition BlueSwitch.c:181

◆ Entity_BlueSwitch_RenderBase

Gfx Entity_BlueSwitch_RenderBase[]

◆ Entity_BlueSwitch_RenderBase2

Gfx Entity_BlueSwitch_RenderBase2[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A000300_E63CC0, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 0, 2, 0),
gsSP2Triangles(2, 1, 4, 0, 2, 4, 5, 0),
gsSP2Triangles(2, 5, 6, 0, 7, 2, 6, 0),
gsSP2Triangles(8, 3, 2, 0, 7, 8, 2, 0),
gsSPEndDisplayList(),
}

◆ Entity_BlueSwitch_RenderBaseMain

Gfx Entity_BlueSwitch_RenderBaseMain[]
Initial value:
= {
gsSPDisplayList(Entity_BlueSwitch_RenderBase),
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_RenderBase[]
Definition BlueSwitch.c:137
Gfx Entity_BlueSwitch_RenderBase2[]
Definition BlueSwitch.c:121

◆ Entity_BlueSwitch_RenderBlueBubble

Gfx Entity_BlueSwitch_RenderBlueBubble[]

◆ Entity_BlueSwitch_RenderExclMark

Gfx Entity_BlueSwitch_RenderExclMark[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(D_0A000390_E63D50, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_LoadExclMark[]
Definition BlueSwitch.c:25

◆ Entity_BlueSwitch_RenderMain

Gfx Entity_BlueSwitch_RenderMain[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_RenderBaseMain[]
Definition BlueSwitch.c:175
Gfx Entity_BlueSwitch_RenderRotatedBlueBubble[]
Definition BlueSwitch.c:95
Gfx Entity_BlueSwitch_RenderRotatedExclMark[]
Definition BlueSwitch.c:114

◆ Entity_BlueSwitch_RenderRotatedBlueBubble

Gfx Entity_BlueSwitch_RenderRotatedBlueBubble[]
Initial value:
= {
gsSPMatrix(&Entity_BlueSwitch_mtxBlueBubble, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Mtx Entity_BlueSwitch_mtxBlueBubble
Definition BlueSwitch.c:44
Gfx Entity_BlueSwitch_RenderBlueBubble[]
Definition BlueSwitch.c:51

◆ Entity_BlueSwitch_RenderRotatedExclMark

Gfx Entity_BlueSwitch_RenderRotatedExclMark[]
Initial value:
= {
gsSPMatrix(&Entity_BlueSwitch_mtxExclMark, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Mtx Entity_BlueSwitch_mtxExclMark
Definition BlueSwitch.c:37
Gfx Entity_BlueSwitch_RenderExclMark[]
Definition BlueSwitch.c:102