TORCS  1.3.9
The Open Racing Car Simulator
grmain.h File Reference
#include <plib/ssg.h>
#include <raceman.h>
Include dependency graph for grmain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GR_SPLIT_ADD   0
 
#define GR_SPLIT_REM   1
 
#define GR_NB_MAX_SCREEN   4
 

Enumerations

enum  EWheelDetail { DETAILED, SIMPLE }
 

Functions

bool InitMultiTex ()
 
int initView (int x, int y, int width, int height, int flag, void *screen)
 
int initCars (tSituation *s)
 
int refresh (tSituation *s)
 
void shutdownCars (void)
 
int initTrack (tTrack *track)
 
void shutdownTrack (void)
 
void muteForMenu (void)
 
float urandom ()
 

Variables

int grWinx
 
int grWiny
 
int grWinw
 
int grWinh
 
int grVectFlag
 
int grVectDispFlag []
 
int segIndice
 
double grCurTime
 
void * grHandle
 
void * grTrackHandle
 
ssgContext grContext
 
int grNbCars
 
int maxTextureUnits
 
tdble grMaxDammage
 
class cGrScreengrScreens []
 
tdble grLodFactorValue
 
double grDeltaTime
 
EWheelDetail grUseDetailedWheels
 

Macro Definition Documentation

◆ GR_NB_MAX_SCREEN

#define GR_NB_MAX_SCREEN   4

Definition at line 72 of file grmain.h.

◆ GR_SPLIT_ADD

#define GR_SPLIT_ADD   0

Definition at line 69 of file grmain.h.

◆ GR_SPLIT_REM

#define GR_SPLIT_REM   1

Definition at line 70 of file grmain.h.

Enumeration Type Documentation

◆ EWheelDetail

Enumerator
DETAILED 
SIMPLE 

Definition at line 77 of file grmain.h.

Function Documentation

◆ initCars()

int initCars ( tSituation s)

Definition at line 347 of file grmain.cpp.

Here is the call graph for this function:

◆ InitMultiTex()

bool InitMultiTex ( )

Definition at line 84 of file grmain.cpp.

Here is the call graph for this function:

◆ initTrack()

int initTrack ( tTrack track)

Definition at line 452 of file grmain.cpp.

Here is the call graph for this function:

◆ initView()

int initView ( int  x,
int  y,
int  width,
int  height,
int  flag,
void *  screen 
)

Definition at line 229 of file grmain.cpp.

Here is the call graph for this function:

◆ muteForMenu()

void muteForMenu ( void  )

Definition at line 496 of file grmain.cpp.

Here is the call graph for this function:

◆ refresh()

int refresh ( tSituation s)

Definition at line 309 of file grmain.cpp.

Here is the call graph for this function:

◆ shutdownCars()

void shutdownCars ( void  )

Definition at line 416 of file grmain.cpp.

Here is the call graph for this function:

◆ shutdownTrack()

void shutdownTrack ( void  )

Definition at line 472 of file grmain.cpp.

Here is the call graph for this function:

◆ urandom()

float urandom ( )
inline

Definition at line 80 of file grmain.h.

Variable Documentation

◆ grContext

ssgContext grContext

Definition at line 67 of file grmain.cpp.

◆ grCurTime

double grCurTime

Definition at line 52 of file grmain.cpp.

◆ grDeltaTime

double grDeltaTime

Definition at line 53 of file grmain.cpp.

◆ grHandle

void* grHandle

Definition at line 59 of file grmain.cpp.

◆ grLodFactorValue

tdble grLodFactorValue

Definition at line 70 of file grmain.cpp.

◆ grMaxDammage

tdble grMaxDammage

Definition at line 56 of file grmain.cpp.

◆ grNbCars

int grNbCars

Definition at line 57 of file grmain.cpp.

◆ grScreens

class cGrScreen* grScreens[]

Definition at line 68 of file grmain.cpp.

◆ grTrackHandle

void* grTrackHandle

Definition at line 60 of file grmain.cpp.

◆ grUseDetailedWheels

EWheelDetail grUseDetailedWheels

Definition at line 71 of file grmain.cpp.

◆ grVectDispFlag

int grVectDispFlag[]

◆ grVectFlag

int grVectFlag

◆ grWinh

int grWinh

Definition at line 62 of file grmain.cpp.

◆ grWinw

int grWinw

Definition at line 62 of file grmain.cpp.

◆ grWinx

int grWinx

Definition at line 62 of file grmain.cpp.

◆ grWiny

int grWiny

Definition at line 62 of file grmain.cpp.

◆ maxTextureUnits

int maxTextureUnits

Definition at line 48 of file grmain.cpp.

◆ segIndice

int segIndice

Definition at line 54 of file grmain.cpp.