TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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
25extern void TrackShutdown(void);
26extern void ReadTrack3(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext);
27extern void ReadTrack4(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext);
28
29extern tTrack *TrackBuildv1(char *trackfile);
30extern tTrack *TrackBuildEx(char *trackfile);
31extern tdble TrackHeightG(tTrackSeg *seg, tdble x, tdble y);
33extern void TrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int sides);
34extern void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y);
35extern void TrackSideNormal(tTrackSeg*, tdble, tdble, int, t3Dd*);
36extern void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm);
38extern tdble TrackSpline(tdble p0, tdble p1, tdble t0, tdble t1, tdble t);
39
40
41#endif /* _TRACKINC_H__ */
42
43
44
@ Y
Definition Basic.h:58
@ X
Definition Basic.h:58
static Point p[4]
Definition Convex.cpp:54
static Vector y[4]
Definition Convex.cpp:56
float tdble
Floating point type used in TORCS.
Definition tgf.h:47
struct trackSeg tTrackSeg
Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right...
3D point.
Definition tgf.h:114
Track structure.
Definition track.h:533
Location on the track in local coordinates.
Definition track.h:434
static void * TrackHandle
Definition track.cpp:33
static tTrack * theTrack
Definition track.cpp:31
struct RoadCam tRoadCam
road camera
void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm)
Definition trackutil.cpp:73
tTrack * TrackBuildEx(char *trackfile)
Definition track.cpp:73
tTrack * TrackBuildv1(char *trackfile)
Definition track.cpp:43
void TrackShutdown(void)
Definition track.cpp:207
tdble TrackSpline(tdble p0, tdble p1, tdble t0, tdble t1, tdble t)
Definition trackutil.cpp:79
void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y)
Definition trackutil.cpp:29
void ReadTrack4(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext)
Definition track4.cpp:1018
tdble TrackHeightL(tTrkLocPos *p)
Definition trackutil.cpp:55
void TrackSideNormal(tTrackSeg *, tdble, tdble, int, t3Dd *)
Definition trackutil.cpp:67
void ReadTrack3(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext)
Definition track3.cpp:1282
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
tRoadCam * TrackGetCamList(void)