Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
RedBlock.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
include_asset.h
"
3
4
#include "entity/model/RedBlock.vtx.inc.c"
5
6
INCLUDE_IMG
(
"entity/model/RedBlock_face.png"
,
D_0A000180_E3C4A0
);
7
Gfx
Entity_RedBlock_LoadTexture
[] = {
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_E3C4A0
,
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
18
Gfx
Entity_RedBlock_RenderTopBottom
[] = {
19
gsDPPipeSync
(),
20
gsDPSetCycleType
(
G_CYC_1CYCLE
),
21
gsSPDisplayList
(
Entity_RedBlock_LoadTexture
),
22
gsSPClearGeometryMode
(
G_LIGHTING
),
23
gsSPSetGeometryMode
(
G_CULL_BACK
|
G_SHADING_SMOOTH
),
24
gsSPVertex
(&
D_0A000000_E3C320
[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
30
Gfx
Entity_RedBlock_RenderSides
[] = {
31
gsDPPipeSync
(),
32
gsDPSetCycleType
(
G_CYC_1CYCLE
),
33
gsSPDisplayList
(
Entity_RedBlock_LoadTexture
),
34
gsSPClearGeometryMode
(
G_LIGHTING
),
35
gsSPSetGeometryMode
(
G_CULL_BACK
|
G_SHADING_SMOOTH
),
36
gsSPVertex
(
D_0A000000_E3C320
, 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
44
Gfx
Entity_RedBlock_Render
[] = {
45
gsSPDisplayList
(
Entity_RedBlock_RenderSides
),
46
gsSPDisplayList
(
Entity_RedBlock_RenderTopBottom
),
47
gsSPEndDisplayList
(),
48
};
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
Entity_RedBlock_RenderSides
Gfx Entity_RedBlock_RenderSides[]
Definition
RedBlock.c:30
Entity_RedBlock_LoadTexture
Gfx Entity_RedBlock_LoadTexture[]
Definition
RedBlock.c:7
Entity_RedBlock_Render
Gfx Entity_RedBlock_Render[]
Definition
RedBlock.c:44
Entity_RedBlock_RenderTopBottom
Gfx Entity_RedBlock_RenderTopBottom[]
Definition
RedBlock.c:18
include_asset.h
INCLUDE_IMG
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Definition
include_asset.h:27
src
entity
model
RedBlock.c
Generated by
1.10.0