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

Functions

 INCLUDE_IMG ("entity/model/SuperBlock_tex.png", D_0A000480_E44C80)
 
 INCLUDE_PAL ("entity/model/SuperBlock_tex.pal", D_0A000580_E44D80)
 

Variables

Gfx Entity_SuperBlock_LoadTexture []
 
Mtx Entity_SuperBlock_mtx
 
Gfx Entity_SuperBlock_RenderTop []
 
Gfx Entity_SuperBlock_RenderRightFrontEdge []
 
Gfx Entity_SuperBlock_RenderLeftFrontEdge []
 
Gfx Entity_SuperBlock_RenderRightBackEdge []
 
Gfx Entity_SuperBlock_RenderLeftBackEdge []
 
Gfx Entity_SuperBlock_RenderBottom []
 
Gfx Entity_SuperBlock_RenderBlock []
 
Gfx Entity_SuperBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/SuperBlock_tex.png" ,
D_0A000480_E44C80  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/SuperBlock_tex.pal" ,
D_0A000580_E44D80  )

Variable Documentation

◆ Entity_SuperBlock_LoadTexture

Gfx Entity_SuperBlock_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A000580_E44D80),
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_0A000480_E44C80, G_IM_FMT_CI, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

◆ Entity_SuperBlock_mtx

Mtx Entity_SuperBlock_mtx
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
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_SuperBlock_Render

Gfx Entity_SuperBlock_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_SuperBlock_RenderBlock[]
Definition SuperBlock.c:115

◆ Entity_SuperBlock_RenderBlock

Gfx Entity_SuperBlock_RenderBlock[]
Initial value:
= {
gsSPMatrix(&Entity_SuperBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPDisplayList(Entity_SuperBlock_RenderTop),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Gfx Entity_SuperBlock_RenderLeftBackEdge[]
Definition SuperBlock.c:87
Gfx Entity_SuperBlock_RenderBottom[]
Definition SuperBlock.c:99
Gfx Entity_SuperBlock_RenderRightBackEdge[]
Definition SuperBlock.c:75
Gfx Entity_SuperBlock_RenderRightFrontEdge[]
Definition SuperBlock.c:51
Gfx Entity_SuperBlock_RenderTop[]
Definition SuperBlock.c:28
Mtx Entity_SuperBlock_mtx
Definition SuperBlock.c:21
Gfx Entity_SuperBlock_RenderLeftFrontEdge[]
Definition SuperBlock.c:63

◆ Entity_SuperBlock_RenderBottom

Gfx Entity_SuperBlock_RenderBottom[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[0], 24, 0),
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(16, 17, 18, 0, 16, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
gsSPEndDisplayList(),
}
Gfx Entity_SuperBlock_LoadTexture[]
Definition SuperBlock.c:8

◆ Entity_SuperBlock_RenderLeftBackEdge

Gfx Entity_SuperBlock_RenderLeftBackEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[24], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_SuperBlock_RenderLeftFrontEdge

Gfx Entity_SuperBlock_RenderLeftFrontEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[40], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_SuperBlock_RenderRightBackEdge

Gfx Entity_SuperBlock_RenderRightBackEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[32], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_SuperBlock_RenderRightFrontEdge

Gfx Entity_SuperBlock_RenderRightFrontEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[48], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_SuperBlock_RenderTop

Gfx Entity_SuperBlock_RenderTop[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[24], 1, 0),
gsSPVertex(&D_0A000000_E44800[28], 1, 1),
gsSPVertex(&D_0A000000_E44800[35], 1, 2),
gsSPVertex(&D_0A000000_E44800[39], 1, 3),
gsSPVertex(&D_0A000000_E44800[43], 1, 4),
gsSPVertex(&D_0A000000_E44800[47], 2, 5),
gsSPVertex(&D_0A000000_E44800[52], 1, 7),
gsSPVertex(&D_0A000000_E44800[56], 16, 8),
gsSP2Triangles(8, 9, 0, 0, 8, 0, 5, 0),
gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
gsSP2Triangles(6, 3, 12, 0, 6, 12, 13, 0),
gsSP2Triangles(4, 7, 14, 0, 4, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
gsSPEndDisplayList(),
}