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

Go to the source code of this file.

Classes

class  ssgVtxTableSmoke
struct  tgrSmoke_st
struct  tgrSmokeManager

Macros

#define SMOKE_INIT_SIZE   0.2f
#define MAX_SMOKE_LIFE   120
#define MAX_SMOKE_NUMBER   300
#define DELTAT   0.1f
#define VZ_INIT   0.05f
#define VY_INIT   0.1f
#define VX_INIT   0.1f
#define V_EXPANSION   0.4f
#define SMOKE_TYPE_TIRE   1
#define SMOKE_TYPE_ENGINE   2

Typedefs

typedef struct tgrSmoke_st tgrSmoke

Functions

void grInitSmoke (int index)
void grAddSmoke (tCarElt *car, double t)
void grUpdateSmoke (double t)
 update if necessary the smoke for a car
void grShutdownSmoke ()
 remove the smoke information for a car

Variables

int grSmokeMaxNumber
double grSmokeDeltaT
double grSmokeLife

Macro Definition Documentation

◆ DELTAT

#define DELTAT   0.1f

Definition at line 7 of file grsmoke.h.

◆ MAX_SMOKE_LIFE

#define MAX_SMOKE_LIFE   120

Definition at line 5 of file grsmoke.h.

◆ MAX_SMOKE_NUMBER

#define MAX_SMOKE_NUMBER   300

Definition at line 6 of file grsmoke.h.

◆ SMOKE_INIT_SIZE

#define SMOKE_INIT_SIZE   0.2f

Definition at line 4 of file grsmoke.h.

◆ SMOKE_TYPE_ENGINE

#define SMOKE_TYPE_ENGINE   2

Definition at line 13 of file grsmoke.h.

◆ SMOKE_TYPE_TIRE

#define SMOKE_TYPE_TIRE   1

Definition at line 12 of file grsmoke.h.

◆ V_EXPANSION

#define V_EXPANSION   0.4f

Definition at line 11 of file grsmoke.h.

◆ VX_INIT

#define VX_INIT   0.1f

Definition at line 10 of file grsmoke.h.

◆ VY_INIT

#define VY_INIT   0.1f

Definition at line 9 of file grsmoke.h.

◆ VZ_INIT

#define VZ_INIT   0.05f

Definition at line 8 of file grsmoke.h.

Typedef Documentation

◆ tgrSmoke

typedef struct tgrSmoke_st tgrSmoke

Function Documentation

◆ grAddSmoke()

void grAddSmoke ( tCarElt * car,
double t )
extern

Definition at line 221 of file grsmoke.cpp.

Here is the call graph for this function:

◆ grInitSmoke()

void grInitSmoke ( int index)
extern

Definition at line 68 of file grsmoke.cpp.

Here is the call graph for this function:

◆ grShutdownSmoke()

void grShutdownSmoke ( )
extern

remove the smoke information for a car

Definition at line 429 of file grsmoke.cpp.

◆ grUpdateSmoke()

void grUpdateSmoke ( double t)
extern

update if necessary the smoke for a car

Definition at line 148 of file grsmoke.cpp.

Variable Documentation

◆ grSmokeDeltaT

double grSmokeDeltaT
extern

Definition at line 53 of file grsmoke.cpp.

◆ grSmokeLife

double grSmokeLife
extern

Definition at line 55 of file grsmoke.cpp.

◆ grSmokeMaxNumber

int grSmokeMaxNumber
extern

Definition at line 52 of file grsmoke.cpp.