Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
Hammer2Block.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
include_asset.h
"
3
4
#include "entity/model/Hammer2Block.vtx.inc.c"
5
6
INCLUDE_IMG
(
"entity/model/Hammer2Block_face.png"
,
D_0A000280_E31CB0
);
7
INCLUDE_PAL
(
"entity/model/Hammer2Block_face.pal"
,
D_0A000380_E31DB0
);
8
Gfx
Entity_Hammer2Block_LoadTexture
[] = {
9
gsDPSetTextureLUT
(
G_TT_RGBA16
),
10
gsDPLoadTLUT_pal16
(0,
D_0A000380_E31DB0
),
11
gsSPTexture
(0xFFFF, 0xFFFF, 0,
G_TX_RENDERTILE
,
G_ON
),
12
gsDPSetTextureDetail
(
G_TD_CLAMP
),
13
gsDPSetTextureLOD
(
G_TL_TILE
),
14
gsDPLoadTextureBlock_4b
(
D_0A000280_E31CB0
,
G_IM_FMT_CI
, 16, 32, 0,
G_TX_MIRROR
|
G_TX_WRAP
,
G_TX_NOMIRROR
|
G_TX_CLAMP
, 4, 5,
G_TX_NOLOD
,
G_TX_NOLOD
),
15
gsDPSetTexturePersp
(
G_TP_PERSP
),
16
gsDPSetTextureFilter
(
G_TF_BILERP
),
17
gsSPEndDisplayList
(),
18
};
19
20
Gfx
Entity_Hammer2Block_RenderFaces
[] = {
21
gsDPPipeSync
(),
22
gsSPDisplayList
(
Entity_Hammer2Block_LoadTexture
),
23
gsSPClearGeometryMode
(
G_LIGHTING
),
24
gsSPVertex
(
D_0A000000_E31A30
, 30, 0),
25
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
26
gsSP2Triangles
(4, 0, 3, 0, 4, 3, 5, 0),
27
gsSP2Triangles
(6, 7, 8, 0, 6, 8, 9, 0),
28
gsSP2Triangles
(10, 11, 12, 0, 10, 12, 13, 0),
29
gsSP2Triangles
(14, 15, 16, 0, 14, 16, 17, 0),
30
gsSP2Triangles
(16, 18, 19, 0, 16, 19, 17, 0),
31
gsSP2Triangles
(18, 20, 21, 0, 18, 21, 19, 0),
32
gsSP2Triangles
(22, 23, 4, 0, 22, 4, 5, 0),
33
gsSP2Triangles
(24, 25, 26, 0, 24, 26, 27, 0),
34
gsSP2Triangles
(26, 28, 29, 0, 26, 29, 27, 0),
35
gsSPVertex
(&
D_0A000000_E31A30
[28], 12, 0),
36
gsSP2Triangles
(0, 2, 6, 0, 0, 6, 1, 0),
37
gsSP2Triangles
(3, 7, 4, 0, 3, 4, 8, 0),
38
gsSP2Triangles
(4, 5, 9, 0, 4, 9, 8, 0),
39
gsSP2Triangles
(5, 10, 11, 0, 5, 11, 9, 0),
40
gsSPEndDisplayList
(),
41
};
42
43
Gfx
Entity_Hammer2Block_RenderBlock
[] = {
44
gsSPDisplayList
(
Entity_Hammer2Block_RenderFaces
),
45
gsSPEndDisplayList
(),
46
};
47
48
Gfx
Entity_Hammer2Block_Render
[] = {
49
gsSPDisplayList
(
Entity_Hammer2Block_RenderBlock
),
50
gsSPEndDisplayList
(),
51
};
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
Entity_Hammer2Block_RenderFaces
Gfx Entity_Hammer2Block_RenderFaces[]
Definition
Hammer2Block.c:20
Entity_Hammer2Block_RenderBlock
Gfx Entity_Hammer2Block_RenderBlock[]
Definition
Hammer2Block.c:43
Entity_Hammer2Block_Render
Gfx Entity_Hammer2Block_Render[]
Definition
Hammer2Block.c:48
Entity_Hammer2Block_LoadTexture
Gfx Entity_Hammer2Block_LoadTexture[]
Definition
Hammer2Block.c:8
include_asset.h
INCLUDE_PAL
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
Definition
include_asset.h:30
INCLUDE_IMG
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Definition
include_asset.h:27
src
entity
model
Hammer2Block.c
Generated by
1.10.0