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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/RedBlock_face.png", D_0A000180_E3C4A0)
 

Variables

Gfx Entity_RedBlock_LoadTexture []
 
Gfx Entity_RedBlock_RenderTopBottom []
 
Gfx Entity_RedBlock_RenderSides []
 
Gfx Entity_RedBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/RedBlock_face.png" ,
D_0A000180_E3C4A0  )

Variable Documentation

◆ Entity_RedBlock_LoadTexture

Gfx Entity_RedBlock_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_NONE),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock(D_0A000180_E3C4A0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 7 of file RedBlock.c.

7 {
8 gsDPSetTextureLUT(G_TT_NONE),
9 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
10 gsDPSetTextureDetail(G_TD_CLAMP),
11 gsDPSetTextureLOD(G_TL_TILE),
12 gsDPLoadTextureBlock(D_0A000180_E3C4A0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
13 gsDPSetTexturePersp(G_TP_PERSP),
14 gsDPSetTextureFilter(G_TF_BILERP),
15 gsSPEndDisplayList(),
16};

◆ Entity_RedBlock_RenderTopBottom

Gfx Entity_RedBlock_RenderTopBottom[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPDisplayList(Entity_RedBlock_LoadTexture),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E3C320[16], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}
Gfx Entity_RedBlock_LoadTexture[]
Definition RedBlock.c:7

Definition at line 18 of file RedBlock.c.

18 {
19 gsDPPipeSync(),
20 gsDPSetCycleType(G_CYC_1CYCLE),
21 gsSPDisplayList(Entity_RedBlock_LoadTexture),
22 gsSPClearGeometryMode(G_LIGHTING),
23 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
24 gsSPVertex(&D_0A000000_E3C320[16], 8, 0),
25 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
26 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
27 gsSPEndDisplayList(),
28};

◆ Entity_RedBlock_RenderSides

Gfx Entity_RedBlock_RenderSides[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPDisplayList(Entity_RedBlock_LoadTexture),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A000000_E3C320, 16, 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),
gsSPEndDisplayList(),
}

Definition at line 30 of file RedBlock.c.

30 {
31 gsDPPipeSync(),
32 gsDPSetCycleType(G_CYC_1CYCLE),
33 gsSPDisplayList(Entity_RedBlock_LoadTexture),
34 gsSPClearGeometryMode(G_LIGHTING),
35 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
36 gsSPVertex(D_0A000000_E3C320, 16, 0),
37 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
38 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
39 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
40 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
41 gsSPEndDisplayList(),
42};

◆ Entity_RedBlock_Render

Gfx Entity_RedBlock_Render[]
Initial value:
= {
gsSPDisplayList(Entity_RedBlock_RenderSides),
gsSPEndDisplayList(),
}
Gfx Entity_RedBlock_RenderSides[]
Definition RedBlock.c:30
Gfx Entity_RedBlock_RenderTopBottom[]
Definition RedBlock.c:18

Definition at line 44 of file RedBlock.c.

44 {
45 gsSPDisplayList(Entity_RedBlock_RenderSides),
46 gsSPDisplayList(Entity_RedBlock_RenderTopBottom),
47 gsSPEndDisplayList(),
48};