36 glRotated(
RAD2DEG(angle), 0, 0, 1);
37 glScaled(length, width, 1);
38 glBegin(GL_TRIANGLES);
45 glTranslated(0, 0, .045);
46 glBegin(GL_TRIANGLES);
48 glVertex2d(-0.5, -0.25);
49 glVertex2d(-0.5, 0.25);
51 glTranslated(0, 0, -.045);
78 glRotated(
RAD2DEG(angle), 0, 0, 1);
79 glScaled(length, width, 1);
81 glTranslated(0, 0, .045);
83 glTranslated(-0.5, 0, 0);
88 glBegin(GL_TRIANGLES);
89 glVertex2d(0.0, -0.2);
93 glTranslated(0, 0, -.045);
95 glScaled(0.9, 2.0, 1);
96 glTranslated(0, 0, .04);
99 glTranslated(0, 0, -.04);
static void drawAction_drawAsImage(const double angle, const double length, const double width, const std::string &file, const SUMOVehicleShape guiShape, const double exaggeration)
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)