forked from 0xGlitchbyte/TinyNightmare64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaxisMdl.h
32 lines (28 loc) · 1.17 KB
/
axisMdl.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
/***************************************************************
axisMdl.h
An axis model which was useful for getting calculations right.
Red represents X, Green represents Y, Blue represents Z.
***************************************************************/
Vtx vtx_axis[] = {
{-2, -2, -2, 0, 0, 0, -73, -73, -73, 255},
{ 50, -2, -2, 0, 0, 0, 73, -73, -73, 255},
{ 50, 2, -2, 0, 0, 0, 73, 73, -73, 255},
{-2, 2, -2, 0, 0, 0, -73, 73, -73, 255},
{-2, -2, 2, 0, 0, 0, -73, -73, 73, 255},
{ 50, -2, 2, 0, 0, 0, 73, -73, 73, 255},
{ 50, 2, 2, 0, 0, 0, 73, 73, 73, 255},
{-2, 2, 2, 0, 0, 0, -73, 73, 73, 255},
{-2, -2, -2, 0, 0, 0, -73, -73, -73, 255},
};
Gfx gfx_axis[] = {
gsDPSetPrimColor(0, 0, 0, 255, 0, 255),
gsDPPipeSync(),
gsSPVertex(vtx_axis+8, 8, 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(2, 7, 6, 0, 2, 3, 7, 0),
gsSP2Triangles(0, 5, 4, 0, 0, 1, 5, 0),
gsSPEndDisplayList(),
};