TORCS  1.3.9
The Open Racing Car Simulator
trackinc.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  file : trackinc.h
4  created : Sun Jan 30 22:57:40 CET 2000
5  copyright : (C) 2000 by Eric Espie
6  email : torcs@free.fr
7  version : $Id$
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  ***************************************************************************/
19 
20 
21 #ifndef _TRACKINC_H__
22 #define _TRACKINC_H__
23 
24 
25 extern void TrackShutdown(void);
26 extern void ReadTrack3(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext);
27 extern void ReadTrack4(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext);
28 
29 extern tTrack *TrackBuildv1(char *trackfile);
30 extern tTrack *TrackBuildEx(char *trackfile);
31 extern tdble TrackHeightG(tTrackSeg *seg, tdble x, tdble y);
33 extern void TrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int sides);
34 extern void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y);
35 extern void TrackSideNormal(tTrackSeg*, tdble, tdble, int, t3Dd*);
36 extern void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm);
37 extern tRoadCam *TrackGetCamList(void);
38 extern tdble TrackSpline(tdble p0, tdble p1, tdble t0, tdble t1, tdble t);
39 
40 
41 #endif /* _TRACKINC_H__ */
42 
43 
44 
tTrack * TrackBuildEx(char *trackfile)
Definition: track.cpp:74
tRoadCam * TrackGetCamList(void)
static tTrack * theTrack
Definition: track.cpp:32
Location on the track in local coordinates.
Definition: track.h:418
void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y)
Definition: trackutil.cpp:29
Track structure.
Definition: track.h:502
Definition: Basic.h:58
void TrackShutdown(void)
Definition: track.cpp:208
tdble TrackHeightG(tTrackSeg *seg, tdble x, tdble y)
Definition: trackutil.cpp:61
void TrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int sides)
Definition: trackutil.cpp:36
road camera
Definition: track.h:226
float tdble
Floating point type used in TORCS.
Definition: tgf.h:48
tdble TrackHeightL(tTrkLocPos *p)
Definition: trackutil.cpp:55
static void * TrackHandle
Definition: track.cpp:34
static Point p[4]
Definition: Convex.cpp:54
Definition: Basic.h:58
tTrack * TrackBuildv1(char *trackfile)
Definition: track.cpp:44
tdble TrackSpline(tdble p0, tdble p1, tdble t0, tdble t1, tdble t)
Definition: trackutil.cpp:79
void ReadTrack4(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext)
Definition: track4.cpp:898
Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right...
Definition: track.h:276
static Vector y[4]
Definition: Convex.cpp:56
void ReadTrack3(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext)
Definition: track3.cpp:1279
3D point.
Definition: tgf.h:115
void TrackSideNormal(tTrackSeg *, tdble, tdble, int, t3Dd *)
Definition: trackutil.cpp:67
void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm)
Definition: trackutil.cpp:73