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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/ArrowSign.png", D_0A000080_E59F80)
 
 INCLUDE_PAL ("entity/model/ArrowSign.pal", D_0A000880_E5A780)
 

Variables

Vtx Entity_ArrowSign_vtxSign []
 
Vtx Entity_ArrowSign_vtxPole []
 
Gfx Entity_ArrowSign_LoadTexture []
 
Mtx Entity_ArrowSign_mtxSign
 
Gfx Entity_ArrowSign_RenderPole []
 
Gfx Entity_ArrowSign_RenderPole_ []
 
Gfx Entity_ArrowSign_RenderRotatedSign []
 
Gfx Entity_ArrowSign_RenderSign []
 
Gfx Entity_ArrowSign_RenderPole__ []
 
Gfx Entity_ArrowSign_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/ArrowSign.png" ,
D_0A000080_E59F80  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/ArrowSign.pal" ,
D_0A000880_E5A780  )

Variable Documentation

◆ Entity_ArrowSign_vtxSign

Vtx Entity_ArrowSign_vtxSign[]
Initial value:
= {
{{{ -10, -10, 0 }, 0, { 0, 0 }, { 255, 255, 255, 255 }}},
{{{ 20, -10, 0 }, 0, { 2048, 0 }, { 255, 255, 255, 255 }}},
{{{ 20, 10, 0 }, 0, { 2048, 1024 }, { 255, 255, 255, 255 }}},
{{{ -10, 10, 0 }, 0, { 0, 1024 }, { 255, 255, 255, 255 }}},
}

Definition at line 4 of file ArrowSign.c.

4 {
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};

◆ Entity_ArrowSign_vtxPole

Vtx Entity_ArrowSign_vtxPole[]
Initial value:
= {
{{{ -2, 0, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
{{{ 1, 0, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
{{{ 1, 19, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
{{{ -2, 19, -1 }, 0, { 0, 0 }, { 25, 20, 0, 255 }}},
}

Definition at line 10 of file ArrowSign.c.

10 {
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};

◆ Entity_ArrowSign_LoadTexture

Gfx Entity_ArrowSign_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A000880_E5A780),
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_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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 19 of file ArrowSign.c.

19 {
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};

◆ Entity_ArrowSign_mtxSign

Mtx Entity_ArrowSign_mtxSign
Initial value:
1.000000, 0.000000, 0.000000, -0.180848,
0.000000, 1.000000, 0.000000, 20.000000,
0.000000, 0.000000, 1.000000, 1.000000,
0.000000, 0.000000, 0.000000, 1.000000
)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233

Definition at line 32 of file ArrowSign.c.

Referenced by entity_ArrowSign_setupGfx().

◆ Entity_ArrowSign_RenderPole

Gfx Entity_ArrowSign_RenderPole[]
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_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(Entity_ArrowSign_vtxPole, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Vtx Entity_ArrowSign_vtxPole[]
Definition ArrowSign.c:10

Definition at line 39 of file ArrowSign.c.

39 {
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};

◆ Entity_ArrowSign_RenderPole_

Gfx Entity_ArrowSign_RenderPole_[]
Initial value:
= {
gsSPDisplayList(Entity_ArrowSign_RenderPole),
gsSPEndDisplayList(),
}
Gfx Entity_ArrowSign_RenderPole[]
Definition ArrowSign.c:39

Definition at line 52 of file ArrowSign.c.

52 {
53 gsSPDisplayList(Entity_ArrowSign_RenderPole),
54 gsSPEndDisplayList(),
55};

◆ Entity_ArrowSign_RenderRotatedSign

Gfx Entity_ArrowSign_RenderRotatedSign[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsSPDisplayList(Entity_ArrowSign_LoadTexture),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(Entity_ArrowSign_vtxSign, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Vtx Entity_ArrowSign_vtxSign[]
Definition ArrowSign.c:4
Gfx Entity_ArrowSign_LoadTexture[]
Definition ArrowSign.c:19

Definition at line 57 of file ArrowSign.c.

57 {
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};

Referenced by entity_ArrowSign_setupGfx().

◆ Entity_ArrowSign_RenderSign

Gfx Entity_ArrowSign_RenderSign[]
Initial value:
= {
gsSPMatrix(&Entity_ArrowSign_mtxSign, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Gfx Entity_ArrowSign_RenderRotatedSign[]
Definition ArrowSign.c:57
Mtx Entity_ArrowSign_mtxSign
Definition ArrowSign.c:32

Definition at line 69 of file ArrowSign.c.

69 {
70 gsSPMatrix(&Entity_ArrowSign_mtxSign, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
72 gsSPPopMatrix(G_MTX_MODELVIEW),
73 gsSPEndDisplayList(),
74};

◆ Entity_ArrowSign_RenderPole__

Gfx Entity_ArrowSign_RenderPole__[]
Initial value:
= {
gsSPDisplayList(Entity_ArrowSign_RenderPole_),
gsSPEndDisplayList(),
}
Gfx Entity_ArrowSign_RenderPole_[]
Definition ArrowSign.c:52

Definition at line 76 of file ArrowSign.c.

76 {
77 gsSPDisplayList(Entity_ArrowSign_RenderPole_),
78 gsSPEndDisplayList(),
79};

◆ Entity_ArrowSign_Render

Gfx Entity_ArrowSign_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_ArrowSign_RenderPole__[]
Definition ArrowSign.c:76

Definition at line 81 of file ArrowSign.c.

81 {
82 gsSPDisplayList(Entity_ArrowSign_RenderPole__),
83 gsSPEndDisplayList(),
84};