|
Public Member Functions |
| cGrTrackMap () |
| ~cGrTrackMap () |
void | selectTrackMap () |
void | display (tCarElt *currentCar, tSituation *situation, int Winx, int Winy, int Winw, int Winh) |
void | setViewMode (int vm) |
int | getViewMode () |
int | getDefaultViewMode () |
| cGrTrackMap () |
| ~cGrTrackMap () |
void | selectTrackMap () |
void | display (tCarElt *currentCar, tSituation *situation, int Winx, int Winy, int Winw, int Winh) |
void | setViewMode (int vm) |
int | getViewMode () |
int | getDefaultViewMode () |
Private Member Functions |
void | drawTrackNormal (int x, int y) |
void | drawTrackPanning (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *situation) |
void | drawTrackPanningAligned (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *s) |
void | drawCar (tCarElt *currentCar, GLfloat *color, int x, int y) |
void | drawCars (tCarElt *currentCar, tSituation *s, int x, int y) |
void | initColors () |
void | checkAndSetMinimum (float ¤tmin, float &value) |
void | checkAndSetMaximum (float ¤tmax, float &value) |
void | drawTrackNormal (int x, int y) |
void | drawTrackPanning (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *situation) |
void | drawTrackPanningAligned (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *s) |
void | drawCar (tCarElt *currentCar, GLfloat *color, int x, int y) |
void | drawCars (tCarElt *currentCar, tSituation *s, int x, int y) |
void | initColors () |
void | checkAndSetMinimum (float ¤tmin, float &value) |
void | checkAndSetMaximum (float ¤tmax, float &value) |
Private Attributes |
int | viewmode |
Static Private Attributes |
const float | RESOLUTION = 5.0 |
const float | MINLINEWIDTH = 5.0 |
const float | MAXLINEWIDTH = 20.0 |
bool | isinitalized = false |
GLuint | mapTexture |
GLuint | cardot |
float | track_min_x |
float | track_max_x |
float | track_min_y |
float | track_max_y |
float | track_width |
float | track_height |
float | track_x_ratio |
float | track_y_ratio |
int | map_x |
int | map_y |
int | map_size |
float | ratio |
GLfloat | currentCarColor [4] |
GLfloat | aheadCarColor [4] |
GLfloat | behindCarColor [4] |