1 /*************************************************************************** 2 3 file : trackgen.h 4 created : Sun Dec 24 16:00:03 CET 2000 5 copyright : (C) 2000 by Eric Espi� 6 email : Eric.Espie@torcs.org 7 version : $Id: trackgen.h,v 1.7.2.2 2012/09/05 16:08:04 berniw Exp $ 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 /** @file 21 22 @author <a href=mailto:torcs@free.fr>Eric Espie</a> 23 @version $Id: trackgen.h,v 1.7.2.2 2012/09/05 16:08:04 berniw Exp $ 24 */ 25 26 #ifndef _TRACKGEN_H_ 27 #define _TRACKGEN_H_ 28 29 #define CLOCKWISE 0 30 #define ANTICLOCKWISE 1 31 32 #define CFG_FILE "tools/trackgen/trackgen.xml" 33 34 35 extern void GenerateTrack(tTrack * Track, void *TrackHandle, char *outFile, FILE *AllFd, int bump, int raceline); 36 extern void CalculateTrack(tTrack * Track, void *TrackHandle); 37 extern void generateRaceLine(tTrack *pTrack, const double SideDistExt, const double SideDistInt); 38 extern double getTexureOffset(double length); 39 40 extern char *OutputFileName; 41 extern int HeightSteps; 42 extern int UseBorder; 43 44 #endif /* _TRACKGEN_H_ */ 45 46 47 48