Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SpinningFlower.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/SpinningFlower_1.vtx.inc.c"
5#include "entity/model/SpinningFlower_2.vtx.inc.c"
6#include "entity/model/SpinningFlower_3.vtx.inc.c"
7#include "entity/model/SpinningFlower_4.vtx.inc.c"
8
9INCLUDE_IMG("entity/model/SpinningFlower_img1.png", D_0A000180_E9CA80);
11 gsDPSetTextureLUT(G_TT_NONE),
12 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
13 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
14 gsDPSetTextureDetail(G_TD_CLAMP),
15 gsDPSetTextureLOD(G_TL_TILE),
16 gsDPLoadTextureBlock_4b(D_0A000180_E9CA80, G_IM_FMT_IA, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
17 gsDPSetTexturePersp(G_TP_PERSP),
18 gsDPSetTextureFilter(G_TF_BILERP),
19 gsSPEndDisplayList(),
20};
21
22INCLUDE_IMG("entity/model/SpinningFlower_petal.png", D_0A0002F8_E9CBF8);
24 gsDPSetTextureLUT(G_TT_NONE),
25 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
26 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
27 gsDPSetTextureDetail(G_TD_CLAMP),
28 gsDPSetTextureLOD(G_TL_TILE),
29 gsDPLoadTextureBlock(D_0A0002F8_E9CBF8, 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),
30 gsDPSetTexturePersp(G_TP_PERSP),
31 gsDPSetTextureFilter(G_TF_BILERP),
32 gsSPEndDisplayList(),
33};
34
36 1.000000, 0.000000, 0.000000, 0.000000,
37 0.000000, 1.000000, 0.000000, 20.000000,
38 0.000000, 0.000000, 1.000000, 0.000000,
39 0.000000, 0.000000, 0.000000, 1.000000
40);
41
43 gsDPPipeSync(),
44 gsDPSetCycleType(G_CYC_1CYCLE),
45 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
46 gsSPDisplayList(D_0A000280_E9CB80),
47 gsSPClearGeometryMode(G_LIGHTING),
48 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
49 gsSPVertex(D_0A000120_E9CA20, 6, 0),
50 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
51 gsSP2Triangles(4, 5, 0, 0, 4, 0, 3, 0),
52 gsSPEndDisplayList(),
53};
54
56 gsDPPipeSync(),
57 gsDPSetCycleType(G_CYC_1CYCLE),
58 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
59 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
60 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
61 gsSPClearGeometryMode(G_LIGHTING),
62 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
63 gsSPVertex(D_0A0000A0_E9C9A0, 8, 0),
64 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
65 gsSP2Triangles(4, 5, 1, 0, 4, 1, 0, 0),
66 gsSP2Triangles(6, 7, 5, 0, 6, 5, 4, 0),
67 gsSPEndDisplayList(),
68};
69
71 gsSPDisplayList(D_0A000C00_E9D500),
72 gsSPDisplayList(D_0A000BB0_E9D4B0),
73 gsSPEndDisplayList(),
74};
75
77 gsDPPipeSync(),
78 gsDPSetCycleType(G_CYC_1CYCLE),
79 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
80 gsSPDisplayList(D_0A000AF8_E9D3F8),
81 gsSPClearGeometryMode(G_LIGHTING),
82 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
83 gsSPVertex(D_0A000050_E9C950, 5, 0),
84 gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
85 gsSP2Triangles(1, 4, 2, 0, 1, 3, 4, 0),
86 gsSPEndDisplayList(),
87};
88
90 gsDPPipeSync(),
91 gsDPSetCycleType(G_CYC_1CYCLE),
92 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
93 gsSPDisplayList(D_0A000AF8_E9D3F8),
94 gsSPClearGeometryMode(G_LIGHTING),
95 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
96 gsSPVertex(D_0A000000_E9C900, 5, 0),
97 gsSP2Triangles(0, 1, 2, 0, 1, 3, 2, 0),
98 gsSP2Triangles(2, 3, 4, 0, 0, 2, 4, 0),
99 gsSPEndDisplayList(),
100};
101
103 gsSPDisplayList(D_0A000CC8_E9D5C8),
104 gsSPDisplayList(D_0A000C78_E9D578),
105 gsSPEndDisplayList(),
106};
107
109 gsSPDisplayList(D_0A000C60_E9D560),
110 gsSPEndDisplayList(),
111};
112
114 gsSPDisplayList(D_0A000D30_E9D630),
115 gsSPEndDisplayList(),
116};
Gfx D_0A000C60_E9D560[]
Gfx D_0A000CC8_E9D5C8[]
Gfx D_0A000D30_E9D630[]
Gfx D_0A000C78_E9D578[]
Gfx D_0A000AF8_E9D3F8[]
Gfx D_0A000BB0_E9D4B0[]
Mtx D_0A000B70_E9D470
Gfx D_0A000D18_E9D618[]
Gfx Entity_SpinningFlower_Render[]
Gfx D_0A000280_E9CB80[]
Gfx D_0A000C00_E9D500[]
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233