torcs - 1.2.2

src/modules/graphic/ssggraph.sav/grcar.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 "grsmoke.h"
#include "grcar.h"
#include "grcam.h"
#include "grscene.h"
#include "grboard.h"
#include "grssgext.h"
#include "grutil.h"
#include "grcarlight.h"

Include dependency graph for grcar.cpp:

Include dependency graph

Compounds

class  myLoaderOptions

Defines

#define BRK_BRANCH   16
#define BRK_ANGLE   (2.0 * M_PI / (tdble)BRK_BRANCH)
#define BRK_OFFSET   0.1
#define WHL_BRANCH   16
#define GR_SHADOW_POINTS   6
#define MULT   1.1

Functions

ssgEntity * grssgLoadAC3D (const char *fname, const ssgLoaderOptions *options)
ssgEntity * grssgCarLoadAC3D (const char *fname, const ssgLoaderOptions *options, int index)
void grInitCommonState (void)
void grInitShadow (tCarElt *car)
void grInitCar (tCarElt *car)
tdble grGetDistToStart (tCarElt *car)
void grDrawCar (tCarElt *car, tCarElt *curCar, int dispCarFlag, int dispDrvFlag, double curTime, class cGrPerspCamera *curCam)

Variables

double carTrackRatioX
double carTrackRatioY
ssgBranch * CarsAnchorTmp = 0

Define Documentation

#define BRK_ANGLE   (2.0 * M_PI / (tdble)BRK_BRANCH)
 

#define BRK_BRANCH   16
 

#define BRK_OFFSET   0.1
 

#define GR_SHADOW_POINTS   6
 

#define MULT   1.1
 

#define WHL_BRANCH   16
 


Function Documentation

void grDrawCar tCarElt car,
tCarElt curCar,
int  dispCarFlag,
int  dispDrvFlag,
double  curTime,
class cGrPerspCamera curCam
 

Here is the call graph for this function:

tdble grGetDistToStart tCarElt car  ) 
 

void grInitCar tCarElt car  ) 
 

Here is the call graph for this function:

void grInitCommonState void   ) 
 

void grInitShadow tCarElt car  ) 
 

Here is the call graph for this function:

ssgEntity* grssgCarLoadAC3D const char *  fname,
const ssgLoaderOptions *  options,
int  index
 

ssgEntity* grssgLoadAC3D const char *  fname,
const ssgLoaderOptions *  options
 


Variable Documentation

ssgBranch* CarsAnchorTmp = 0
 

double carTrackRatioX
 

double carTrackRatioY
 


Generated at Thu Feb 26 21:53:15 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.