39 glScaled(lenght, width, 1);
40 glBegin(GL_TRIANGLES);
47 glTranslated(0, 0, .045);
48 glBegin(GL_TRIANGLES);
50 glVertex2d(0.5, -0.25);
51 glVertex2d(0.5, 0.25);
53 glTranslated(0, 0, -.045);
59 glScaled(lenght, width, 1);
68 glScaled(lenght, width, 1);
70 glTranslated(0, 0, .045);
75 glBegin(GL_TRIANGLES);
76 glVertex2d(0.0, -0.2);
78 glVertex2d(-0.6, 0.0);
80 glTranslated(0, 0, -.045);
82 glScaled(0.9, 2.0, 1);
83 glTranslated(0, 0, .04);
86 glTranslated(0, 0, -.04);
100 const double halfLength = lenght / 2.0 * exaggeration;
101 const double halfWidth = width / 2.0 * exaggeration;
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
RGBColor changedBrightness(int change, int toChange=3) const
Returns a new color with altered brightness.
static void drawAction_drawAsImage(const double angle, const double lenght, const double width, const std::string &file, const SUMOVehicleShape guiShape, const double exaggeration)
static void drawAction_drawAsTriangle(const double angle, const double lenght, const double width)
static void drawAction_drawAsPoly(const double angle, const double lenght, const double width)
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
static void drawAction_drawAsCircle(const double lenght, const double width)
static double naviDegree(const double angle)
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
static RGBColor getColor()
gets the gl-color