-
Notifications
You must be signed in to change notification settings - Fork 0
/
knight_white.h
215 lines (208 loc) · 9.37 KB
/
knight_white.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/*
3D model generated by Jo Map Editor v6.1
*/
#ifndef __3D_MODELKnightWhite_H__
# define __3D_MODELKnightWhite_H__
static POINT PointKnightWhite[] =
{
{-1160702, -2595857, 2056126},
{1160702, -2595857, 2056126},
{-2321408, -2595857, 45728},
{-1160702, -2595857, -1964668},
{1160702, -2595857, -1964668},
{2321408, -2595857, 45728},
{-1577185, -1075154, 2777493},
{1577185, -1075154, 2777493},
{-3154370, -1075154, 45728},
{-1577185, -1075154, -2686037},
{1577185, -1075154, -2686037},
{3154370, -1075154, 45728},
{1577185, 1394, 2777493},
{-1577185, 1394, 2777493},
{-3154370, 1395, 45728},
{-1577185, 1395, -2686037},
{1577185, 1395, -2686037},
{3154370, 1395, 45728},
{-1102210, -4792076, 2056126},
{1102210, -4792076, 2056126},
{-2321408, -3689228, 45728},
{-1102210, -4792076, -1964668},
{1102210, -4792076, -1964668},
{2321408, -3689228, 45728},
{-955442, -8577143, 3276800},
{955442, -8577143, 3276800},
{-1049522, -7244188, -894507},
{1049521, -7244188, -894507},
{810704, -10645093, 2031289},
{-810704, -10645093, 2031289},
{-751129, -6896929, -3026346},
{751129, -6896929, -3026346},
{803468, -10748492, -874901},
{-803467, -10748492, -874901},
{-842085, -7905056, -3804791},
{842084, -7905056, -3804791},
{1160702, -2595857, 2056126},
{1577185, -1075154, 2777493},
{1577185, -1075154, 2777493},
{1577185, -1075154, 2777493},
{-1577185, -1075154, 2777493},
{-1577185, -1075154, 2777493},
{-1577185, -1075154, 2777493},
{-1160702, -2595857, 2056126},
{-3154370, -1075154, 45728},
{-3154370, -1075154, 45728},
{-3154370, -1075154, 45728},
{-2321408, -2595857, 45728},
{-1577185, -1075154, -2686037},
{-1577185, -1075154, -2686037},
{-1577185, -1075154, -2686037},
{-1160702, -2595857, -1964668},
{1577185, -1075154, -2686037},
{1577185, -1075154, -2686037},
{1577185, -1075154, -2686037},
{1160702, -2595857, -1964668},
{3154370, -1075154, 45728},
{3154370, -1075154, 45728},
{3154370, -1075154, 45728},
{2321408, -2595857, 45728},
{1577185, 1394, 2777493},
{1577185, 1394, 2777493},
{-1577185, 1394, 2777493},
{-1577185, 1394, 2777493},
{-3154370, 1395, 45728},
{-3154370, 1395, 45728},
{-1577185, 1395, -2686037},
{-1577185, 1395, -2686037},
{1577185, 1395, -2686037},
{1577185, 1395, -2686037},
{3154370, 1395, 45728},
{3154370, 1395, 45728},
{-1102210, -4792076, 2056126},
{-1102210, -4792076, 2056126},
{-1102210, -4792076, 2056126},
{1102210, -4792076, 2056126},
{1102210, -4792076, 2056126},
{1102210, -4792076, 2056126},
{-2321408, -3689228, 45728},
{-2321408, -3689228, 45728},
{-1102210, -4792076, -1964668},
{-1102210, -4792076, -1964668},
{-1102210, -4792076, -1964668},
{1102210, -4792076, -1964668},
{1102210, -4792076, -1964668},
{1102210, -4792076, -1964668},
{2321408, -3689228, 45728},
{2321408, -3689228, 45728},
{-955442, -8577143, 3276800},
{955442, -8577143, 3276800},
{1049521, -7244188, -894507},
{1049521, -7244188, -894507},
{-1049522, -7244188, -894507},
{-1049522, -7244188, -894507},
{-810704, -10645093, 2031289},
{810704, -10645093, 2031289},
{751129, -6896929, -3026346},
{751129, -6896929, -3026346},
{-751129, -6896929, -3026346},
{-751129, -6896929, -3026346},
{-803467, -10748492, -874901},
{803468, -10748492, -874901},
{842084, -7905056, -3804791},
{842084, -7905056, -3804791},
{-842085, -7905056, -3804791},
{-842085, -7905056, -3804791},
};
static POLYGON PolygonKnightWhite[] =
{
{{0, -15546, 63665}, {43, 36, 37, 40}},
{{63665, 0, -28087}, {47, 0, 41, 44}},
{{59211, -54952, -15876}, {51, 2, 45, 48}},
{{31985, -54964, -15818}, {55, 3, 49, 52}},
{{-15818, 31993, -51279}, {59, 4, 53, 56}},
{{-28087, 29605, -54964}, {1, 5, 57, 38}},
{{-15818, -31993, -54952}, {42, 39, 60, 62}},
{{-31993, -54952, -15876}, {46, 6, 63, 64}},
{{-54952, -15876, -31985}, {50, 8, 65, 66}},
{{-15876, -31985, -51279}, {54, 9, 67, 68}},
{{-31985, -51279, -28087}, {58, 10, 69, 70}},
{{-51279, -28087, -29605}, {7, 11, 71, 61}},
{{-28087, -29605, 0}, {14, 17, 16, 15}},
{{-28087, -29605, 0}, {12, 17, 14, 13}},
{{0, -15546, 63665}, {36, 43, 72, 75}},
{{0, -28087, 59211}, {0, 47, 78, 73}},
{{-54952, -15876, 31985}, {2, 51, 80, 79}},
{{31985, -54964, -15818}, {3, 55, 83, 81}},
{{31993, -51279, -28087}, {4, 59, 86, 84}},
{{29605, -54964, -15818}, {5, 1, 76, 87}},
{{0, -28087, -59211}, {74, 20, 82, 82}},
{{54952, -15876, -31985}, {77, 85, 23, 23}},
{{54964, -15818, -31993}, {19, 18, 88, 89}},
{{-31993, 51279, -28087}, {21, 22, 90, 92}},
{{0, -28087, -59211}, {74, 82, 93, 24}},
{{-15876, -31985, 54964}, {85, 77, 25, 91}},
{{-15818, -31993, 51279}, {89, 88, 94, 95}},
{{31993, 54952, -15876}, {26, 27, 96, 98}},
{{-15818, 31993, 54952}, {95, 94, 100, 101}},
{{-15876, 31985, 51279}, {99, 97, 102, 104}},
{{54952, -15876, 31985}, {101, 100, 105, 103}},
{{-28087, -29605, 54964}, {24, 93, 33, 29}},
{{51279, -28087, -29605}, {93, 30, 34, 33}},
{{54964, -15818, 31993}, {91, 32, 35, 31}},
{{-29605, 54964, -15818}, {25, 28, 32, 91}},
};
static ATTR AttributeKnightWhite[] =
{
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
ATTRIBUTE(Dual_Plane, SORT_CEN, No_Texture, 0x801f, CL32KRGB | No_Gouraud, CL32KRGB | MESHoff, sprPolygon, UseLight),
};
jo_3d_mesh MeshKnightWhite =
{
.data =
{
PointKnightWhite,
106,
PolygonKnightWhite,
35,
AttributeKnightWhite
}
};
/* Call this function in you code to display all objects */
static __jo_force_inline void display_knight_white_mesh(void)
{
jo_3d_rotate_matrix_y(180);
jo_3d_mesh_draw(&MeshKnightWhite);
}
#endif /* !__3D_MODELKnightWhite_H__ */