-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcursor.c
35 lines (32 loc) · 1.22 KB
/
cursor.c
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
#include "pieces.h"
#include "constants.h"
Vtx cursor_verts[] = {
{ 89, 89, 0, 0, 0, 0, 252, 211, 25, 255 },
{ 89, 89, 89, 0, 0, 0, 255, 169, 109, 255 },
{ -89, 89, 0, 0, 0, 0, 252, 211, 25, 255 },
{ 0, 89, 0, 0, 0, 0, 252, 211, 24, 255 },
{ -89, 89, 89, 0, 0, 0, 255, 169, 109, 255 },
{ 0, 89, 89, 0, 0, 0, 255, 169, 109, 255 },
{ 89, -89, 0, 0, 0, 0, 252, 211, 25, 255 },
{ 89, 0, 0, 0, 0, 0, 252, 211, 24, 255 },
{ 89, -89, 89, 0, 0, 0, 255, 169, 109, 255 },
{ 89, 0, 89, 0, 0, 0, 255, 184, 112, 255 },
{ -89, -89, 0, 0, 0, 0, 252, 211, 25, 255 },
{ 0, -89, 0, 0, 0, 0, 252, 211, 24, 255 },
{ -89, 0, 0, 0, 0, 0, 252, 211, 24, 255 },
{ -89, -89, 89, 0, 0, 0, 255, 169, 109, 255 },
{ 0, -89, 89, 0, 0, 0, 255, 169, 109, 255 },
{ -89, 0, 89, 0, 0, 0, 255, 184, 112, 255 },
};
Gfx cursor_commands[] = {
gsSPVertex(&cursor_verts, 16, 0),
gsSP2Triangles(7, 1, 0, 0, 0, 5, 3, 0),
gsSP2Triangles(12, 4, 15, 0, 2, 5, 4, 0),
gsSP2Triangles(7, 8, 9, 0, 6, 14, 8, 0),
gsSP2Triangles(12, 13, 10, 0, 10, 14, 11, 0),
gsSP2Triangles(7, 9, 1, 0, 0, 1, 5, 0),
gsSP2Triangles(12, 2, 4, 0, 2, 3, 5, 0),
gsSP2Triangles(7, 6, 8, 0, 6, 11, 14, 0),
gsSP2Triangles(12, 15, 13, 0, 10, 13, 14, 0),
gsSPEndDisplayList(),
};