Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
YellowBlock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/YellowBlock.vtx.inc.c"
5
6INCLUDE_IMG("entity/model/YellowBlock_face.png", D_0A000180_E3B9F0);
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_E3B9F0, 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};
17
19 gsDPPipeSync(),
20 gsDPSetCycleType(G_CYC_1CYCLE),
21 gsSPDisplayList(Entity_YellowBlock_LoadTexture),
22 gsSPClearGeometryMode(G_LIGHTING),
23 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
24 gsSPVertex(&D_0A000000_E3B870[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};
29
31 gsDPPipeSync(),
32 gsDPSetCycleType(G_CYC_1CYCLE),
33 gsSPDisplayList(Entity_YellowBlock_LoadTexture),
34 gsSPClearGeometryMode(G_LIGHTING),
35 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
36 gsSPVertex(&D_0A000000_E3B870[0], 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};
43
45 gsSPDisplayList(Entity_YellowBlock_RenderSides),
47 gsSPEndDisplayList(),
48};
Gfx Entity_YellowBlock_LoadTexture[]
Definition YellowBlock.c:7
Gfx Entity_YellowBlock_Render[]
Definition YellowBlock.c:44
Gfx Entity_YellowBlock_RenderTopBottom[]
Definition YellowBlock.c:18
Gfx Entity_YellowBlock_RenderSides[]
Definition YellowBlock.c:30
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)