-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestcube.h
95 lines (92 loc) · 10.7 KB
/
testcube.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
static Vtx cube_vtx[] = {
{-10, -10, -10, 0, 31 << 6, 31 << 6, 255, 0, 0, 255},
{ 10, -10, -10, 0, 0 << 6, 31 << 6, 0, 255, 0, 255},
{ 10, 10, -10, 0, 0 << 6, 0 << 6, 0, 0, 255, 255},
{-10, 10, -10, 0, 31 << 6, 0 << 6, 255, 255, 0, 255},
{-10, -10, 10, 0, 0 << 6, 31 << 6, 255, 0, 255, 255},
{ 10, -10, 10, 0, 31 << 6, 31 << 6, 0, 255, 255, 255},
{ 10, 10, 10, 0, 31 << 6, 0 << 6, 255, 255, 255, 255},
{-10, 10, 10, 0, 0 << 6, 0 << 6, 255, 0, 0, 255},
{-10, -10, -10, 0, 0 << 6, 31 << 6, 255, 0, 0, 255},
{ 10, -10, -10, 0, 31 << 6, 31 << 6, 0, 255, 0, 255},
{ 10, 10, -10, 0, 31 << 6, 0 << 6, 0, 0, 255, 255},
{-10, 10, -10, 0, 0 << 6, 0 << 6, 255, 255, 0, 255},
{-10, -10, 10, 0, 0 << 6, 0 << 6, 255, 0, 255, 255},
{ 10, -10, 10, 0, 31 << 6, 0 << 6, 0, 255, 255, 255},
{ 10, 10, 10, 0, 31 << 6, 31 << 6, 255, 255, 255, 255},
{-10, 10, 10, 0, 0 << 6, 31 << 6, 0, 0, 0, 255},
};
static Gfx rgba16sign1_a_C_aligner[] = {gsSPEndDisplayList()};
unsigned short rgba16sign1_a[] = {
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xE945, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xE945, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0xD009, 0x981F, 0x4827, 0x2029, 0x2029, 0x2029, 0x4827, 0x981F, 0xD009, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0xB80F, 0x3829, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x3829, 0xB80F, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF001, 0x4827, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xB80F, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xD009, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xA019, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xF001, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xA019, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF881, 0x4827, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xA019, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x981F, 0xF881, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420,
0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xB80F, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xA019, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0xB80F, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420,
0x8420, 0xF8C1, 0xF8C1, 0xF881, 0x3829, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xA019, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x3829, 0xF881, 0xF8C1, 0xF8C1, 0x8420, 0x8420,
0x8420, 0xF8C1, 0xF8C1, 0xD009, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xA019, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0xD009, 0xF8C1, 0xF8C1, 0x8420, 0x8420,
0xE945, 0xF8C1, 0xF8C1, 0x981F, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x8825, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x981F, 0xF8C1, 0xF8C1, 0xE945, 0x8420,
0xF8C1, 0xF8C1, 0xF8C1, 0x4827, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x4827, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420,
0xF8C1, 0xF8C1, 0xF8C1, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420,
0xF8C1, 0xF8C1, 0xF8C1, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420,
0xF8C1, 0xF8C1, 0xF8C1, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420,
0xF8C1, 0xF8C1, 0xF8C1, 0x4827, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0x6825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x4827, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420,
0xE945, 0xF8C1, 0xF8C1, 0x981F, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0x8825, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x981F, 0xF8C1, 0xF8C1, 0xE945, 0x8420,
0x8420, 0xF8C1, 0xF8C1, 0xD009, 0x2029, 0x2029, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xA019, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xD009, 0xF8C1, 0xF8C1, 0x8420, 0x8420,
0x8420, 0xF8C1, 0xF8C1, 0xF881, 0x3829, 0x2029, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xA019, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x3829, 0xF881, 0xF8C1, 0xF8C1, 0x8420, 0x8420,
0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xB80F, 0x2029, 0x6825, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xA019, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xB80F, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420,
0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF881, 0x981F, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xA019, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x4827, 0xF881, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xA019, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xF001, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xA019, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0xD009, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xB80F, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x4827, 0xF001, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0xB80F, 0x3829, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x2029, 0x3829, 0xB80F, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF881, 0xD009, 0x981F, 0x4827, 0x2029, 0x2029, 0x2029, 0x4827, 0x981F, 0xD009, 0xF881, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xF103, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF103, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0xE945, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xF8C1, 0xE945, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420, 0x8420,
};
Gfx cube_dl[] =
{
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
gsSPClearGeometryMode(0xFFFFFFFF),
gsSPSetGeometryMode(G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER | G_CULL_BACK | G_CLIPPING),
gsDPSetCombineLERP(0, 0, 0, TEXEL0,
0, 0, 0, TEXEL0,
0, 0, 0, TEXEL0,
0, 0, 0, TEXEL0),
gsDPLoadTextureBlock(rgba16sign1_a,
G_IM_FMT_RGBA,
G_IM_SIZ_16b,
32, 32,
0,
G_TX_CLAMP,
G_TX_CLAMP,
5, 5,
G_TX_NOLOD, G_TX_NOLOD),
gsDPLoadSync(),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
//gsDPSetTextureConvert(G_TC_FILT),
gsDPSetTextureLOD(G_TL_TILE),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLUT(G_TT_NONE),
gsDPPipeSync(),
gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
gsSPVertex(cube_vtx, 16, 0),
gsSP2Triangles(4, 6, 7, 0, 4, 5, 6, 0),
gsSP2Triangles(6, 5, 2, 1, 2, 5, 1, 1),
gsSP2Triangles(1, 3, 2, 0, 0, 3, 1, 2),
gsSP2Triangles(3, 0, 7, 2, 0, 4, 7, 2),
gsSP2Triangles(15, 14, 10, 0, 15, 10, 11, 0),
gsSP2Triangles(8, 9, 13, 0, 8, 13, 12, 0),
gsDPPipeSync(),
gsSPEndDisplayList()
};