40#include <glfeatures.h>
42#define TRACK_MAP_NONE (1<<0)
43#define TRACK_MAP_NORMAL (1<<1)
44#define TRACK_MAP_NORMAL_WITH_OPPONENTS (1<<2)
45#define TRACK_MAP_PAN (1<<3)
46#define TRACK_MAP_PAN_WITH_OPPONENTS (1<<4)
47#define TRACK_MAP_PAN_ALIGNED (1<<5)
48#define TRACK_MAP_PAN_ALIGNED_WITH_OPPONENTS (1<<6)
51#define TRACK_MAP_MASK (1<<6)
struct CarElt tCarElt
Car structure (tCarElt).
static float track_y_ratio
static GLfloat behindCarColor[4]
static const float MAXLINEWIDTH
void drawTrackPanning(int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *situation)
void checkAndSetMaximum(float ¤tmax, float &value)
static GLfloat currentCarColor[4]
void display(tCarElt *currentCar, tSituation *situation, int Winx, int Winy, int Winw, int Winh)
static const float RESOLUTION
void drawTrackNormal(int x, int y)
void drawCars(tCarElt *currentCar, tSituation *s, int x, int y)
static const float MINLINEWIDTH
static GLfloat aheadCarColor[4]
void drawCar(tCarElt *currentCar, GLfloat *color, int x, int y)
void checkAndSetMinimum(float ¤tmin, float &value)
static float track_x_ratio
void drawTrackPanningAligned(int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *s)
static float track_height
struct Situation tSituation
cars situation used to inform the GUI and the drivers