TORCS  1.3.9
The Open Racing Car Simulator
track.cpp File Reference
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <tgf.h>
#include <track.h>
#include <portability.h>
#include "trackinc.h"
Include dependency graph for track.cpp:

Go to the source code of this file.

Functions

static void GetTrackHeader (void *TrackHandle)
 
tTrackTrackBuildv1 (char *trackfile)
 
tTrackTrackBuildEx (char *trackfile)
 
static void freeSeg (tTrackSeg *seg)
 
void TrackShutdown (void)
 

Variables

const tdble DEGPRAD = 180.0 / PI
 
static tTracktheTrack = NULL
 
static tRoadCamtheCamList
 
static void * TrackHandle
 

Function Documentation

◆ freeSeg()

static void freeSeg ( tTrackSeg seg)
static

Definition at line 186 of file track.cpp.

◆ GetTrackHeader()

static void GetTrackHeader ( void *  TrackHandle)
static

Definition at line 120 of file track.cpp.

Here is the call graph for this function:

◆ TrackBuildEx()

tTrack* TrackBuildEx ( char *  trackfile)

Definition at line 74 of file track.cpp.

Here is the call graph for this function:

◆ TrackBuildv1()

tTrack* TrackBuildv1 ( char *  trackfile)

Definition at line 44 of file track.cpp.

Here is the call graph for this function:

◆ TrackShutdown()

void TrackShutdown ( void  )

Definition at line 208 of file track.cpp.

Here is the call graph for this function:

Variable Documentation

◆ DEGPRAD

const tdble DEGPRAD = 180.0 / PI

Definition at line 30 of file track.cpp.

◆ theCamList

tRoadCam* theCamList
static

Definition at line 33 of file track.cpp.

◆ theTrack

tTrack* theTrack = NULL
static

Definition at line 32 of file track.cpp.

◆ TrackHandle

void* TrackHandle
static

Definition at line 34 of file track.cpp.