38 double vehiclePoly_PassengerCarBody[] = { .5, 0, 0, 0, 0, .3, 0.08, .44, 0.25, .5, 0.95, .5, 1., .4, 1., -.4, 0.95, -.5, 0.25, -.5, 0.08, -.44, 0, -.3, 0, 0, -10000 };
39 double vehiclePoly_PassengerCarBodyFront[] = { 0.1, 0, 0.025, 0, 0.025, 0.25, 0.27, 0.4, 0.27, -.4, 0.025, -0.25, 0.025, 0, -10000 };
40 double vehiclePoly_PassengerFrontGlass[] = { 0.35, 0, 0.3, 0, 0.3, 0.4, 0.43, 0.3, 0.43, -0.3, 0.3, -0.4, 0.3, 0, -10000 };
41 double vehiclePoly_PassengerSedanRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.77, -.47, 0.67, -.37, 0.45, -.37, 0.34, -.47, -10000 };
42 double vehiclePoly_PassengerSedanLeftGlass[] = { 0.36, .43, 0.34, .47, 0.77, .47, 0.67, .37, 0.45, .37, 0.34, .47, -10000 };
43 double vehiclePoly_PassengerSedanBackGlass[] = { 0.80, 0, 0.70, 0, 0.70, 0.3, 0.83, 0.4, 0.83, -.4, 0.70, -.3, 0.70, 0, -10000 };
44 double vehiclePoly_PassengerHatchbackRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.94, -.47, 0.80, -.37, 0.45, -.37, 0.34, -.47, -10000 };
45 double vehiclePoly_PassengerHatchbackLeftGlass[] = { 0.36, .43, 0.34, .47, 0.94, .47, 0.80, .37, 0.45, .37, 0.34, .47, -10000 };
46 double vehiclePoly_PassengerHatchbackBackGlass[] = { 0.92, 0, 0.80, 0, 0.80, 0.3, 0.95, 0.4, 0.95, -.4, 0.80, -.3, 0.80, 0, -10000 };
47 double vehiclePoly_PassengerWagonRightGlass[] = { 0.36, -.43, 0.34, -.47, 0.94, -.47, 0.87, -.37, 0.45, -.37, 0.34, -.47, -10000 };
48 double vehiclePoly_PassengerWagonLeftGlass[] = { 0.36, .43, 0.34, .47, 0.94, .47, 0.87, .37, 0.45, .37, 0.34, .47, -10000 };
49 double vehiclePoly_PassengerWagonBackGlass[] = { 0.92, 0, 0.90, 0, 0.90, 0.3, 0.95, 0.4, 0.95, -.4, 0.90, -.3, 0.90, 0, -10000 };
51 double vehiclePoly_PassengerVanBody[] = { .5, 0, 0, 0, 0, .4, 0.1, .5, 0.97, .5, 1., .47, 1., -.47, 0.97, -.5, 0.1, -.5, 0, -.4, 0, 0, -10000 };
52 double vehiclePoly_PassengerVanBodyFront[] = { 0.1, 0, 0.025, 0, 0.025, 0.25, 0.13, 0.4, 0.13, -.4, 0.025, -0.25, 0.025, 0, -10000 };
53 double vehiclePoly_PassengerVanFrontGlass[] = { 0.21, 0, 0.16, 0, 0.16, 0.4, 0.29, 0.3, 0.29, -0.3, 0.16, -0.4, 0.16, 0, -10000 };
54 double vehiclePoly_PassengerVanRightGlass[] = { 0.36, -.43, 0.20, -.47, 0.98, -.47, 0.91, -.37, 0.31, -.37, 0.20, -.47, -10000 };
55 double vehiclePoly_PassengerVanLeftGlass[] = { 0.36, .43, 0.20, .47, 0.98, .47, 0.91, .37, 0.31, .37, 0.20, .47, -10000 };
56 double vehiclePoly_PassengerVanBackGlass[] = { 0.95, 0, 0.94, 0, 0.94, 0.3, 0.98, 0.4, 0.98, -.4, 0.94, -.3, 0.94, 0, -10000 };
58 double vehiclePoly_DeliveryMediumRightGlass[] = { 0.21, -.43, 0.20, -.47, 0.38, -.47, 0.38, -.37, 0.31, -.37, 0.20, -.47, -10000 };
59 double vehiclePoly_DeliveryMediumLeftGlass[] = { 0.21, .43, 0.20, .47, 0.38, .47, 0.38, .37, 0.31, .37, 0.20, .47, -10000 };
61 double vehiclePoly_TransportBody[] = { .5, 0, 0, 0, 0, .45, 0.05, .5, 2.25, .5, 2.25, -.5, 0.05, -.5, 0, -.45, 0, 0, -10000 };
62 double vehiclePoly_TransportFrontGlass[] = { 0.1, 0, 0.05, 0, 0.05, 0.45, 0.25, 0.4, 0.25, -.4, 0.05, -0.45, 0.05, 0, -10000 };
63 double vehiclePoly_TransportRightGlass[] = { 0.36, -.47, 0.10, -.48, 1.25, -.48, 1.25, -.4, 0.3, -.4, 0.10, -.48, -10000 };
64 double vehiclePoly_TransportLeftGlass[] = { 0.36, .47, 0.10, .48, 1.25, .48, 1.25, .4, 0.3, .4, 0.10, .48, -10000 };
66 double vehiclePoly_EVehicleBody[] = { .5, 0, 0, 0, 0, .3, 0.08, .44, 0.25, .5, 0.75, .5, .92, .44, 1, .3, 1, -.3, .92, -.44, .75, -.5, .25, -.5, 0.08, -.44, 0, -.3, 0, 0, -1000 };
67 double vehiclePoly_EVehicleFrontGlass[] = { .5, 0, 0.05, .05, 0.05, .25, 0.13, .39, 0.3, .45, 0.70, .45, .87, .39, .95, .25, .95, -.25, .87, -.39, .70, -.45, .3, -.45, 0.13, -.39, 0.05, -.25, 0.05, 0.05, -1000 };
69 double vehiclePoly_EVehicleBackGlass[] = { 0.65, 0, 0.9, 0, 0.9, 0.4, 0.57, 0.3, 0.57, -0.3, 0.9, -0.4, 0.9, 0, -10000 };
71 double vehiclePoly_Ship[] = { 0.25, 0, 0, 0, 0.1, 0.25, 0.2, 0.45, 0.25, 0.5, 0.95, 0.5, 1.0, 0.45, 1.0, -0.45, 0.95, -0.5, 0.25, -0.5, 0.2, -0.45, 0.1, -0.25, 0, 0, -10000 };
72 double vehiclePoly_ShipDeck[] = { 0.5, 0, 0.25, 0.4, 0.95, 0.4, 0.95, -0.4, 0.25, -0.4, 0.25, 0.4, -10000 };
73 double vehiclePoly_ShipSuperStructure[] = { 0.8, 0, 0.5, 0.3, 0.85, 0.3, 0.85, -0.3, 0.5, -0.3, 0.5, 0.3, -10000 };
75 double vehiclePoly_Cyclist[] = { 0.5, 0, 0.25, 0.45, 0.25, 0.5, 0.8, 0.15, 0.8, -0.15, 0.25, -0.5, 0.25, -0.45, -10000 };
89 double vehiclePoly_Rickshaw[] = { 0.5, 0, 0.25, 0.45, 0.25, 0.5, 0.8, 0.15, 0.8, -0.15, 0.25, -0.5, 0.25, -0.45, -10000 };
98 glTranslated(0, 0, offset * .1);
99 glPolygonOffset(0, (GLfloat) - offset);
100 glBegin(GL_TRIANGLE_FAN);
102 while (poses[i] > -999) {
103 glVertex2d(poses[i], poses[i + 1]);
113 glScaled(width, length, 1.);
114 glBegin(GL_TRIANGLE_STRIP);
116 glVertex2d(-.5, .15);
132 glScaled(width, length, 1.);
133 glBegin(GL_TRIANGLES);
150 glRotated(90, 0, 0, 1);
151 glScaled(length, width, 1.);
163 glTranslated(0, 0, .045);
165 glTranslated(0, 0, -.045);
167 glTranslated(0, 0, .04);
170 glTranslated(0, 0, -.04);
180 glTranslated(0.4, 0, .5);
181 glScaled(0.1, 0.2, 1);
188 glTranslated(0.5, 0, .3);
189 glScaled(0.5, 0.05, 1);
194 glTranslated(0.25, 0, .3);
195 glScaled(0.02, 0.5, 1);
232 if (carriageIndex < 1) {
233 glScaled(1. / (length), 1, 1.);
245 glScaled(1. / (length), 1, 1.);
246 glTranslated(0, 0, .04);
247 glBegin(GL_TRIANGLE_FAN);
248 glVertex2d(ml / 2., 0);
251 glVertex2d(0 + .05, -.5);
252 glVertex2d(ml - .05, -.5);
253 glVertex2d(ml, -.45);
255 glVertex2d(ml - .05, .5);
256 glVertex2d(0 + .05, .5);
260 glTranslated(0, 0, -.04);
262 glTranslated(0, 0, .045);
265 glVertex2d(0 + .05, .48);
266 glVertex2d(0 + .05, -.48);
267 glVertex2d(0 + .15, -.48);
268 glVertex2d(0 + .15, .48);
270 glVertex2d(ml - .1, .45);
271 glVertex2d(ml - .1, -.45);
272 glVertex2d(ml - .05, -.45);
273 glVertex2d(ml - .05, .45);
275 glVertex2d(0 + .20, .49);
276 glVertex2d(0 + .20, .45);
277 glVertex2d(ml - .20, .45);
278 glVertex2d(ml - .20, .49);
280 glVertex2d(0 + .20, -.49);
281 glVertex2d(0 + .20, -.45);
282 glVertex2d(ml - .20, -.45);
283 glVertex2d(ml - .20, -.49);
286 glTranslated(0, 0, -.045);
297 glTranslated(0, 0, .048);
302 glVertex2d(.35, -.5);
305 glVertex2d(.3, -.05);
306 glVertex2d(.7, -.05);
312 glVertex2d(.65, -.5);
315 glTranslated(0, 0, -.048);
342 glTranslated(0, 0, 0.1);
344 glTranslated(.4, 0, 0);
346 glTranslated(.4, 0, 0);
369 glTranslated(0.7, 0, 0);
370 glColor3d(.18, .55, .34);
385 glTranslated(0.7, 0, 0);
388 glColor3d(.5, .5, .5);
404 glTranslated(0.7, 0, 0);
405 glColor3d(.5, .5, .5);
416 glTranslated(.5, .5, -0.1);
421 glTranslated(.5, -.5, -0.1);
440 glBegin(GL_TRIANGLE_FAN);
441 glVertex2d(1 / 2., 0);
444 glVertex2d(0 + .05, -.05);
445 glVertex2d(1 - .05, -.05);
448 glVertex2d(1 - .05, .05);
449 glVertex2d(0 + .05, .05);
457 glBegin(GL_TRIANGLE_FAN);
458 glVertex2d(1 / 2., 0);
461 glVertex2d(0 + .05, -.2);
462 glVertex2d(1 - .05, -.2);
465 glVertex2d(1 - .05, .2);
466 glVertex2d(0 + .05, .2);
495 if (carriageIndex < 0) {
502 double l = length - 2.3;
503 if (carriageIndex != 0) {
514 glTranslated(0, 0, .1);
517 glTranslated(0, 0, .1);
624 const double halfWidth = width / 2.0 * exaggeration;