-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTexture.h
More file actions
executable file
·336 lines (267 loc) · 11.1 KB
/
Copy pathTexture.h
File metadata and controls
executable file
·336 lines (267 loc) · 11.1 KB
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
// This is the texture configuration file it's format is
// index,num,x1,y1,x2,y2,x3,y3,x4,y4
// it maps the 2D Jam file to the 3D polygons
// by editing this file you can help me determine
// the mapping of textures onto polygons to
// a help the development effort
// allowing me to concentrate on add additional editing
// functionality to the Car Shape Editor
// the x1,y1 correspond to the x and y point on the 2D jam files
// their order in the polygon depends on the vertex order in the polygon
// if you find any polygons then please email then to me!
typedef struct
{
int id;
int num;
int xy[14];
} t_texture;
// first 0 and 1 are wheel location definition so they can be ignored
// Wheel
t_texture AllTextures[] = {
{0, 1, {-1, -1}},
// Wheel
{1, 1, {-1, -1}},
// LHS side of side pod
{2, 4, {189, 114, 134, 114, 134, 97, 189, 97}},
// RHS side of side pod
{3, 4, {124, 162, 69, 162, 69, 144, 124, 144}},
// LHS rear wing number
{4, 4, {253, 97, 235, 97, 235, 68, 253, 68}},
// black one's
{5, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{7, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
// RHS rear wing number
{6, 4, {23, 145, 4, 145, 4, 116, 23, 116}},
// side of air pod's tail
{10, 4, {235, 99, 189, 95, 189, 92, 221, 92}},
{11, 4, {69, 143, 23, 147, 40, 140, 69, 140}},
// Top of air pod
{12, 4, {151, 37, 133, 37, 133, 29, 151, 29}},
// RHS front of side pod
{14, 4, {169, 117, 192, 117, 192, 136, 169, 136}},
// LHS front of side pod
{15, 4, {225, 117, 249, 117, 249, 136, 225, 136}},
// top of thigh space
{16, 4, {98, 24, 59, 24, 59, 30, 98, 30}},
{17, 4, {98, 36, 59, 36, 59, 30, 98, 30}},
{18, 4, {98, 42, 59, 42, 59, 36, 98, 36}},
// top of calf space
// adjust 59 and 38 if too short!
{19, 4, {59, 30, 38, 30, 38, 26, 59, 24}},
{20, 4, {59, 36, 38, 36, 38, 30, 59, 30}},
{21, 4, {59, 40, 38, 40, 38, 36, 59, 36}},
// top of nose cone
{22, 4, {38, 36, 4, 36, 4, 30, 38, 30}},
{23, 3, {38, 30, 4, 30, 38, 26}},
{24, 3, {38, 40, 4, 36, 38, 36}},
// sides of nose cone
{25, 3, {242, 160, 208, 160, 208, 144}},
{26, 3, {50, 112, 16, 112, 50, 96}},
// front right side of cockpit
{27, 3, {145, 139, 136, 144, 137, 141}},
// front left side of cockpit
{28, 3, {122, 96, 113, 91, 121, 93}},
// front of left side pods
{29, 4, {122, 114, 112, 112, 112, 91, 122, 96}},
// front of right side pods
{30, 4, {146, 160, 136, 162, 136, 144, 146, 139}},
// just infront of driver
{31, 3, {110, 42, 98, 42, 98, 36}},
{32, 3, {110, 24, 98, 30, 98, 24}},
// air vent
{33, 4, {213, 56, 222, 56, 224, 67, 211, 67}},
{34, 4, {211, 67, 224, 67, 230, 82, 205, 82}},
// Front Right wing vertical
{35, 4, {220, 137, 220, 147, 245, 147, 245, 142}},
// Front Left wing vertical
{37, 4, {28, 124, 28, 129, 53, 129, 53, 119}},
// front wind sides
{36, 4, {245, 147, 220, 147, 220, 137, 245, 142}},
{38, 4, {52, 128, 28, 128, 28, 124, 52, 119}},
// Right side of air pod
{39, 4, {111, 127, 97, 127, 97, 117, 114, 116}},
{40, 4, {113, 140, 97, 140, 97, 128, 111, 128}},
// air pod's tail
{41, 3, {67, 139, 41, 139, 67, 127}},
{42, 3, {219, 92, 191, 92, 191, 79}},
// Left side of air pod
{43, 4, {162, 79, 147, 79, 144, 68, 162, 69}},
{44, 4, {162, 92, 145, 92, 147, 80, 162, 80}},
// right side of back air pod
{45, 3, {96, 140, 70, 140, 96, 128}},
{46, 3, {96, 128, 68, 140, 68, 127}},
{47, 3, {96, 126, 68, 127, 96, 117}},
// air pod's back shoulder
{48, 3, {151, 29, 180, 33, 151, 37}},
// left side of back air pod
{49, 3, {191, 79, 163, 78, 163, 69}},
{50, 3, {191, 79, 191, 92, 163, 80}},
{51, 3, {188, 92, 163, 92, 163, 80}},
// Steering whell
{52, 4, {130, 117, 130, 137, 119, 131, 119, 123}},
// Driver's body
{53, 4, {157, 117, 157, 137, 131, 137, 131, 117}},
{54, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{55, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
// Right side of nose
{56, 4, {186, 160, 147, 160, 147, 138, 186, 140}},
{57, 4, {207, 160, 187, 160, 187, 140, 207, 143}},
// Left side of nose
{58, 4, {111, 112, 72, 112, 72, 92, 111, 90}},
{59, 4, {71, 112, 51, 112, 51, 95, 71, 92}},
// right back of side pod
{60, 4, {69, 144, 69, 162, 42, 162, 42, 146}},
// left back of side pod
{61, 4, {216, 98, 216, 114, 189, 114, 189, 96}},
// Front right frontal wing
{62, 4, {23, 1, 23, 12, 29, 9, 29, 1}},
{63, 4, {29, 1, 29, 9, 23, 12, 23, 1}},
// Front left frontal wing
{64, 4, {23, 54, 23, 65, 29, 65, 29, 57}},
{65, 4, {29, 57, 29, 65, 23, 65, 23, 54}},
// Back horizontal wing
{70, 4, {65, 65, 116, 65, 116, 67, 65, 67}},
{71, 4, {53, 71, 2, 71, 2, 69, 53, 69}},
{72, 4, {53, 76, 2, 76, 2, 72, 53, 72}},
{73, 4, {65, 68, 116, 68, 116, 72, 65, 72}},
{74, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{75, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{76, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{77, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{78, 4, {117, 89, 95, 83, 95, 77, 116, 82}},
{79, 4, {22, 81, 33, 81, 33, 88, 22, 88}},
{80, 4, {95, 83, 83, 84, 83, 77, 95, 83}},
{81, 4, {33, 88, 33, 81, 54, 86, 54, 93}},
{82, 4, {64, 89, 64, 82, 85, 77, 83, 84}},
{83, 4, {0, 86, 22, 81, 22, 88, 9, 93}},
// top of exhaust
{84, 4, {232, 15, 232, 33, 223, 33, 204, 15}},
{85, 4, {223, 33, 232, 33, 232, 51, 204, 51}},
// Back Exhaust
{86, 5, {246, 11, 203, 11, 203, 0, 225, 0, 246, 0}},
// right side of exhaust
{87, 5, {41, 146, 41, 162, 20, 162, 15, 160, 15, 148}},
// left side of exhaust
{90, 5, {243, 100, 243, 112, 238, 114, 217, 114, 217, 98}},
// wing supports
{88, 6, {62, 3, 47, 3, 32, 3, 32, 0, 47, 0, 62, 0}},
{89, 6, {62, 3, 47, 3, 32, 3, 32, 0, 47, 0, 62, 0}},
{94, 6, {62, 3, 47, 3, 32, 3, 32, 0, 47, 0, 62, 0}},
{95, 6, {62, 3, 47, 3, 32, 3, 32, 0, 47, 0, 62, 0}},
{96, 3, {62, 3, 32, 3, 32, 0}},
{97, 3, {62, 3, 32, 3, 32, 0}},
{98, 3, {62, 3, 32, 3, 32, 0}},
{99, 3, {62, 3, 32, 3, 32, 0}},
// suspension
{100, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{101, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{102, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{103, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{104, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{105, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{106, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{107, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{108, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{109, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{110, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{111, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{112, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{113, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{114, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{115, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{116, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{117, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{118, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{119, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{120, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{121, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{122, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{123, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{124, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{125, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{126, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{127, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{128, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{129, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{130, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{131, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{132, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{133, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{134, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{135, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
// read tray
{91, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{92, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
// exhaust
{93, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
// between right side pod and air pod
{142, 4, {70, 144, 70, 141, 96, 141, 96, 144}},
// RHS top of side pod
{143, 5, {183, 0, 183, 14, 140, 14, 111, 14, 125, 0}},
// between left side pod and air pod
{144, 4, {188, 93, 188, 96, 162, 96, 162, 93}},
// left side of cockpit (usually for driver's name)
{145, 5, {161, 93, 161, 96, 123, 96, 123, 93, 145, 93}},
// LHS top of side pod
{146, 5, {183, 52, 183, 66, 125, 66, 111, 52, 140, 52}},
// right side of cockpit (usually for driver's name)
{147, 5, {97, 144, 97, 141, 113, 141, 135, 141, 135, 144}},
// left back of side pod
{148, 3, {204, 52, 184, 65, 183, 46}},
{149, 3, {205, 14, 223, 33, 184, 20}},
// right back of side pod
{150, 3, {204, 14, 183, 20, 184, 1}},
{151, 3, {223, 33, 205, 52, 184, 46}},
// Front Right Wing Horizontal
{176, 5, {22, 1, 22, 14, 19, 27, 4, 28, 4, 1}},
// Front Left Wing Horizontal
{178, 5, {19, 39, 22, 52, 22, 65, 4, 65, 4, 38}},
// bottom
{66, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{67, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{68, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{69, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{136, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{137, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{138, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{139, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{140, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{141, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{154, 5, {63, 3, 32, 3, 32, 0, 47, 0, 63, 0}},
{157, 5, {63, 3, 47, 3, 32, 3, 32, 0, 63, 0}},
{158, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{159, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
// the shadow
{186, 4, {0, 256, 256, 256, 256, 0, 0, 0}},
// nose cone
{177, 5, {62, 3, 45, 3, 32, 3, 32, 0, 62, 0}},
{179, 5, {62, 3, 45, 3, 32, 3, 32, 0, 62, 0}},
{180, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{181, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{182, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{183, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{184, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
{185, 4, {62, 3, 32, 3, 32, 0, 62, 0}},
};
t_texture AllHelmets[] = {
{0, 4, {53, 15, 53, 13, 58, 13, 58, 15}},
{1, 4, {48, 15, 48, 13, 53, 13, 53, 15}},
{2, 4, {43, 13, 48, 13, 48, 15, 43, 15}},
{3, 4, {43, 13, 43, 15, 38, 15, 38, 13}},
{4, 4, {33, 15, 33, 13, 38, 13, 38, 15}},
{5, 4, {25, 15, 25, 13, 33, 13, 33, 15}},
{6, 4, {28, 13, 28, 15, 21, 25, 21, 13}},
{7, 4, {21, 15, 14, 15, 14, 13, 21, 13}},
{17, 4, {14, 15, 7, 15, 7, 13, 14, 13}},
{39, 4, {14, 13, 14, 15, 1, 15, 1, 13}},
{8, 4, {6, 7, 6, 10, 1, 10, 1, 7}},
{9, 4, {58, 7, 58, 10, 52, 10, 52, 7}},
{10, 4, {52, 7, 52, 10, 46, 10, 46, 7}},
{11, 4, {40, 7, 46, 7, 46, 10, 40, 10}},
{12, 4, {34, 10, 34, 7, 40, 7, 40, 15}},
{13, 4, {34, 7, 34, 15, 28, 10, 28, 7}},
{14, 4, {28, 7, 28, 15, 22, 10, 22, 7}},
{15, 4, {22, 7, 22, 10, 16, 10, 16, 7}},
{16, 4, {16, 10, 10, 10, 10, 7, 16, 7}},
{18, 4, {10, 10, 4, 10, 4, 7, 10, 7}},
};