125 const int BUFSIZE = 256;
152 if (graphic->
envnb < 1) {
156 graphic->
env = (
const char**)calloc(graphic->
envnb,
sizeof(
char*));
158 for (i = 1; i <= graphic->
envnb; i++) {
224 nextSeg = nextSeg->
next;
230 nextSurf = curSurf->
next;
238 nextCam = curCam->
next;
tTrackOwnPit * driversPits
List of pits by driver.
void * GfParmReadFile(const char *file, int mode)
Read parameter set from file and return handle to parameter set.
#define GFPARM_RMODE_STD
if handle already openned return it
#define TRK_SECT_TURNMARKS
struct trackSurface * next
Next surface in list.
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
tdble width
main track width
tTrack * TrackBuildEx(char *trackfile)
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
char * internalname
Internal name of the track.
tTrackGraphicInfo graphic
tTurnMarksInfo turnMarksInfo
tTrackBarrier * barrier[2]
Segment barriers.
static tRoadCam * theCamList
float tdble
Floating point type used in TORCS.
int nseg
Number of segments.
static void GetTrackHeader(void *TrackHandle)
static void * TrackHandle
const char * name
Name of the track.
The Gaming Framework API.
void ReadTrack3(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext)
void * params
Parameters handle.
#define GFPARM_RMODE_PRIVATE
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
int version
Version of the track type.
Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right...
const char * author
Author's name.
tTrack * TrackBuildv1(char *trackfile)
int GfParmGetEltNb(void *handle, const char *path)
Count the number of subsections in a section in the parameter set handle.
struct trackSeg * next
Next segment.
void ReadTrack4(tTrack *theTrack, void *TrackHandle, tRoadCam **camList, int ext)
tTrackSurface * surfaces
Segment surface list.
const char * category
Category of the track.
Track Structure and Track Loader Module Definition.
tTrackSeg * seg
Main track.
tTrackPitInfo pits
Pits information.
#define GFPARM_RMODE_CREAT
Create the file if doesn't exist.
char * filename
Filename of the track description.
static void freeSeg(tTrackSeg *seg)