TORCS  1.3.9
The Open Racing Car Simulator
grskidmarks.cpp File Reference
#include <math.h>
#include <stdlib.h>
#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
#include <GL/glut.h>
#include <plib/ssg.h>
#include <tgfclient.h>
#include <track.h>
#include <car.h>
#include <graphic.h>
#include <robottools.h>
#include "grmain.h"
#include "grshadow.h"
#include "grskidmarks.h"
#include "grcar.h"
#include "grcam.h"
#include "grscene.h"
#include "grboard.h"
#include "grssgext.h"
#include "grutil.h"
Include dependency graph for grskidmarks.cpp:

Go to the source code of this file.

Functions

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

Variables

static ssgSimpleState * skidState = NULL
 
int grSkidMaxStripByWheel
 
int grSkidMaxPointByStrip
 
double grSkidDeltaT
 

Function Documentation

◆ grDrawSkidmarks()

void grDrawSkidmarks ( tCarElt car)

Definition at line 385 of file grskidmarks.cpp.

◆ grInitSkidmarks()

void grInitSkidmarks ( tCarElt car)

initialize the skidmak structure for a car

Definition at line 59 of file grskidmarks.cpp.

Here is the call graph for this function:

◆ grShutdownSkidmarks()

void grShutdownSkidmarks ( void  )

remove the skidmarks information for a car

Definition at line 357 of file grskidmarks.cpp.

◆ grUpdateSkidmarks()

void grUpdateSkidmarks ( tCarElt car,
double  t 
)

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

Definition at line 56 of file grskidmarks.cpp.

◆ grSkidMaxPointByStrip

int grSkidMaxPointByStrip

Definition at line 55 of file grskidmarks.cpp.

◆ grSkidMaxStripByWheel

int grSkidMaxStripByWheel

Definition at line 54 of file grskidmarks.cpp.

◆ skidState

ssgSimpleState* skidState = NULL
static

Definition at line 52 of file grskidmarks.cpp.