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

Functions

 INCLUDE_IMG ("entity/model/ScriptSpring_tex1.png", D_0A000860_E66000)
 
 INCLUDE_PAL ("entity/model/ScriptSpring_tex1.pal", D_0A000960_E66100)
 
 INCLUDE_IMG ("entity/model/ScriptSpring_tex2.png", D_0A000C08_E663A8)
 
 INCLUDE_PAL ("entity/model/ScriptSpring_tex2.pal", D_0A000D08_E664A8)
 
 INCLUDE_IMG ("entity/model/ScriptSpring_star.png", D_0A000FB0_E66750)
 
 INCLUDE_PAL ("entity/model/ScriptSpring_star.pal", D_0A0013B0_E66B50)
 

Variables

Gfx Entity_ScriptSpring_LoadTexture1 []
 
Gfx Entity_ScriptSpring_LoadTexture2 []
 
Gfx Entity_ScriptSpring_LoadTextureStar []
 
Gfx Entity_ScriptSpring_RenderPart2 []
 
Gfx Entity_ScriptSpring_RenderPart6 []
 
Gfx Entity_ScriptSpring_RenderPart1 []
 
Gfx Entity_ScriptSpring_RenderPart3 []
 
Gfx Entity_ScriptSpring_RenderPart4 []
 
Gfx Entity_ScriptSpring_RenderPart5 []
 
Gfx Entity_ScriptSpring_RenderPart7 []
 

Function Documentation

◆ INCLUDE_IMG() [1/3]

INCLUDE_IMG ( "entity/model/ScriptSpring_star.png" ,
D_0A000FB0_E66750  )

◆ INCLUDE_IMG() [2/3]

INCLUDE_IMG ( "entity/model/ScriptSpring_tex1.png" ,
D_0A000860_E66000  )

◆ INCLUDE_IMG() [3/3]

INCLUDE_IMG ( "entity/model/ScriptSpring_tex2.png" ,
D_0A000C08_E663A8  )

◆ INCLUDE_PAL() [1/3]

INCLUDE_PAL ( "entity/model/ScriptSpring_star.pal" ,
D_0A0013B0_E66B50  )

◆ INCLUDE_PAL() [2/3]

INCLUDE_PAL ( "entity/model/ScriptSpring_tex1.pal" ,
D_0A000960_E66100  )

◆ INCLUDE_PAL() [3/3]

INCLUDE_PAL ( "entity/model/ScriptSpring_tex2.pal" ,
D_0A000D08_E664A8  )

Variable Documentation

◆ Entity_ScriptSpring_LoadTexture1

Gfx Entity_ScriptSpring_LoadTexture1[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A000960_E66100),
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_0A000860_E66000, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

◆ Entity_ScriptSpring_LoadTexture2

Gfx Entity_ScriptSpring_LoadTexture2[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A000D08_E664A8),
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_0A000C08_E663A8, 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_ScriptSpring_LoadTextureStar

Gfx Entity_ScriptSpring_LoadTextureStar[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A0013B0_E66B50),
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_0A000FB0_E66750, G_IM_FMT_CI, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

◆ Entity_ScriptSpring_RenderPart1

Gfx Entity_ScriptSpring_RenderPart1[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A000400_E65BA0, 18, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0),
gsSP2Triangles(8, 9, 1, 0, 8, 1, 0, 0),
gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0),
gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0),
gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0),
gsSPVertex(&D_0A000400_E65BA0[18], 22, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
gsSP2Triangles(5, 6, 7, 0, 5, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSPEndDisplayList(),
}
Gfx Entity_ScriptSpring_LoadTexture2[]
Definition ScriptSpring_gfx.c:29

◆ Entity_ScriptSpring_RenderPart2

Gfx Entity_ScriptSpring_RenderPart2[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A0007E0_E65F80, 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
gsSPEndDisplayList(),
}
Gfx Entity_ScriptSpring_LoadTextureStar[]
Definition ScriptSpring_gfx.c:44

◆ Entity_ScriptSpring_RenderPart3

Gfx Entity_ScriptSpring_RenderPart3[]
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_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A000380_E65B20, 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_ScriptSpring_RenderPart4

Gfx Entity_ScriptSpring_RenderPart4[]
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_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A000300_E65AA0, 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_ScriptSpring_RenderPart5

Gfx Entity_ScriptSpring_RenderPart5[]
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_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A000280_E65A20, 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
gsSPEndDisplayList(),
}

◆ Entity_ScriptSpring_RenderPart6

Gfx Entity_ScriptSpring_RenderPart6[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A000680_E65E20, 22, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 2, 4, 0),
gsSP2Triangles(5, 6, 7, 0, 8, 9, 7, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSPEndDisplayList(),
}
Gfx Entity_ScriptSpring_LoadTexture1[]
Definition ScriptSpring_gfx.c:14

◆ Entity_ScriptSpring_RenderPart7

Gfx Entity_ScriptSpring_RenderPart7[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(D_0A000000_E657A0, 18, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0),
gsSP2Triangles(8, 9, 1, 0, 8, 1, 0, 0),
gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0),
gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0),
gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0),
gsSPVertex(&D_0A000000_E657A0[18], 22, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 1, 0),
gsSP2Triangles(5, 6, 7, 0, 8, 9, 7, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSPEndDisplayList(),
}