TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
grskidmarks.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tgrSkidStrip
struct  tgrSkidmarks

Macros

#define DELTATSTRIP   0.3f
#define MAXPOINT_BY_STRIP   600
#define MAXSTRIP_BYWHEEL   40
#define DIST_INTERVAL   0.2f
#define SKID_UNUSED   1
#define SKID_BEGIN   2
#define SKID_RUNNING   3
#define SKID_STOPPED   4

Functions

void grInitSkidmarks (tCarElt *car)
 initialize the skidmak structure for a car
void grUpdateSkidmarks (tCarElt *car, double t)
 update if necessary the skidmarks for a car
void grShutdownSkidmarks (void)
 remove the skidmarks information for a car
void grDrawSkidmarks (tCarElt *car)

Variables

int grSkidMaxStripByWheel
int grSkidMaxPointByStrip
double grSkidDeltaT

Macro Definition Documentation

◆ DELTATSTRIP

#define DELTATSTRIP   0.3f

Definition at line 3 of file grskidmarks.h.

◆ DIST_INTERVAL

#define DIST_INTERVAL   0.2f

Definition at line 6 of file grskidmarks.h.

◆ MAXPOINT_BY_STRIP

#define MAXPOINT_BY_STRIP   600

Definition at line 4 of file grskidmarks.h.

◆ MAXSTRIP_BYWHEEL

#define MAXSTRIP_BYWHEEL   40

Definition at line 5 of file grskidmarks.h.

◆ SKID_BEGIN

#define SKID_BEGIN   2

Definition at line 9 of file grskidmarks.h.

◆ SKID_RUNNING

#define SKID_RUNNING   3

Definition at line 10 of file grskidmarks.h.

◆ SKID_STOPPED

#define SKID_STOPPED   4

Definition at line 11 of file grskidmarks.h.

◆ SKID_UNUSED

#define SKID_UNUSED   1

Definition at line 8 of file grskidmarks.h.

Function Documentation

◆ grDrawSkidmarks()

void grDrawSkidmarks ( tCarElt * car)
extern

Definition at line 385 of file grskidmarks.cpp.

◆ grInitSkidmarks()

void grInitSkidmarks ( tCarElt * car)
extern

initialize the skidmak structure for a car

Definition at line 58 of file grskidmarks.cpp.

Here is the call graph for this function:

◆ grShutdownSkidmarks()

void grShutdownSkidmarks ( void )
extern

remove the skidmarks information for a car

Definition at line 357 of file grskidmarks.cpp.

◆ grUpdateSkidmarks()

void grUpdateSkidmarks ( tCarElt * car,
double t )
extern

update if necessary the skidmarks for a car

this is the begining of a skid or the continue of the last one

this is the end of a skid or there is nothing to do

Definition at line 144 of file grskidmarks.cpp.

Variable Documentation

◆ grSkidDeltaT

double grSkidDeltaT
extern

Definition at line 55 of file grskidmarks.cpp.

◆ grSkidMaxPointByStrip

int grSkidMaxPointByStrip
extern

Definition at line 54 of file grskidmarks.cpp.

◆ grSkidMaxStripByWheel

int grSkidMaxStripByWheel
extern

Definition at line 53 of file grskidmarks.cpp.