torcs - 1.2.2

src/modules/graphic/ssggraph/grskidmarks.h

Go to the documentation of this file.
00001 #ifndef _GRSKIDMARKS_H_
00002 #define _GRSKIDMARKS_H_
00003 #define DELTATSTRIP 0.3f
00004 #define MAXPOINT_BY_STRIP 600
00005 #define MAXSTRIP_BYWHEEL  40
00006 #define DIST_INTERVAL     0.2f
00007 
00008 #define SKID_UNUSED  1
00009 #define SKID_BEGIN   2
00010 #define SKID_RUNNING 3
00011 #define SKID_STOPPED 4
00012 
00013 extern int grSkidMaxStripByWheel;
00014 extern int grSkidMaxPointByStrip;
00015 extern double grSkidDeltaT;
00016 
00017 typedef struct 
00018 {
00019   ssgVertexArray        **vtx; /* the strips */
00020   ssgVtxTableShadow     **vta;
00021   ssgColourArray        **clr;
00022 
00023   int                   *state;
00024   int                   *size;
00025   double                timeStrip;
00026   int                   running_skid;
00027   int                   next_skid;
00028   int                   last_state_of_skid;
00029   int                   skid_full;
00030 }tgrSkidStrip;
00031 
00032 typedef struct 
00033 {
00034   ssgVtxTable   *base; /* to remember the pos of the wheel line before transform */
00035   tgrSkidStrip  strips[4]; /* the strips of the four wheels*/
00036 }tgrSkidmarks;
00037 
00038 extern void grInitSkidmarks(tCarElt *car);
00039 extern void grUpdateSkidmarks(tCarElt *car, double t);
00040 extern void grShutdownSkidmarks (void);
00041 extern void grDrawSkidmarks (tCarElt *car);
00042 
00043 #endif /* _GRSKIDMARKS_*/

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