Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
ArrowSign.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
5 {{{ -10, -10, 0 }, 0, { 0, 0 }, { 255, 255, 255, 255 }}},
6 {{{ 20, -10, 0 }, 0, { 2048, 0 }, { 255, 255, 255, 255 }}},
7 {{{ 20, 10, 0 }, 0, { 2048, 1024 }, { 255, 255, 255, 255 }}},
8 {{{ -10, 10, 0 }, 0, { 0, 1024 }, { 255, 255, 255, 255 }}},
9};
11 {{{ -2, 0, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
12 {{{ 1, 0, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
13 {{{ 1, 19, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
14 {{{ -2, 19, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
15};
16
17INCLUDE_IMG("entity/model/ArrowSign.png", D_0A000080_E59F80);
18INCLUDE_PAL("entity/model/ArrowSign.pal", D_0A000880_E5A780);
20 gsDPSetTextureLUT(G_TT_RGBA16),
21 gsDPLoadTLUT_pal256(D_0A000880_E5A780),
22 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
23 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
24 gsDPSetTextureDetail(G_TD_CLAMP),
25 gsDPSetTextureLOD(G_TL_TILE),
26 gsDPLoadTextureBlock(D_0A000080_E59F80, G_IM_FMT_CI, G_IM_SIZ_8b, 64, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
27 gsDPSetTexturePersp(G_TP_PERSP),
28 gsDPSetTextureFilter(G_TF_BILERP),
29 gsSPEndDisplayList(),
30};
31
33 1.000000, 0.000000, 0.000000, -0.180848,
34 0.000000, 1.000000, 0.000000, 20.000000,
35 0.000000, 0.000000, 1.000000, 1.000000,
36 0.000000, 0.000000, 0.000000, 1.000000
37);
38
40 gsDPPipeSync(),
41 gsDPSetCycleType(G_CYC_1CYCLE),
42 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
43 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
44 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
45 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
46 gsSPSetGeometryMode(G_CULL_BACK),
47 gsSPVertex(Entity_ArrowSign_vtxPole, 4, 0),
48 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
49 gsSPEndDisplayList(),
50};
51
53 gsSPDisplayList(Entity_ArrowSign_RenderPole),
54 gsSPEndDisplayList(),
55};
56
58 gsDPPipeSync(),
59 gsDPSetCycleType(G_CYC_1CYCLE),
60 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
61 gsSPDisplayList(Entity_ArrowSign_LoadTexture),
62 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
63 gsSPSetGeometryMode(G_CULL_BACK),
64 gsSPVertex(Entity_ArrowSign_vtxSign, 4, 0),
65 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
66 gsSPEndDisplayList(),
67};
68
70 gsSPMatrix(&Entity_ArrowSign_mtxSign, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
72 gsSPPopMatrix(G_MTX_MODELVIEW),
73 gsSPEndDisplayList(),
74};
75
77 gsSPDisplayList(Entity_ArrowSign_RenderPole_),
78 gsSPEndDisplayList(),
79};
80
82 gsSPDisplayList(Entity_ArrowSign_RenderPole__),
83 gsSPEndDisplayList(),
84};
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx Entity_ArrowSign_RenderRotatedSign[]
Definition ArrowSign.c:57
Mtx Entity_ArrowSign_mtxSign
Definition ArrowSign.c:32
Gfx Entity_ArrowSign_Render[]
Definition ArrowSign.c:81
Gfx Entity_ArrowSign_RenderPole__[]
Definition ArrowSign.c:76
Gfx Entity_ArrowSign_RenderPole_[]
Definition ArrowSign.c:52
Vtx Entity_ArrowSign_vtxSign[]
Definition ArrowSign.c:4
Gfx Entity_ArrowSign_RenderSign[]
Definition ArrowSign.c:69
Vtx Entity_ArrowSign_vtxPole[]
Definition ArrowSign.c:10
Gfx Entity_ArrowSign_LoadTexture[]
Definition ArrowSign.c:19
Gfx Entity_ArrowSign_RenderPole[]
Definition ArrowSign.c:39
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233