TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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 cGrScreen * grScreens []
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)
extern

Definition at line 344 of file grmain.cpp.

Here is the call graph for this function:

◆ InitMultiTex()

bool InitMultiTex ( )
extern

Definition at line 83 of file grmain.cpp.

Here is the call graph for this function:

◆ initTrack()

int initTrack ( tTrack * track)
extern

Definition at line 449 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 )
extern

Definition at line 226 of file grmain.cpp.

Here is the call graph for this function:

◆ muteForMenu()

void muteForMenu ( void )
extern

Definition at line 493 of file grmain.cpp.

Here is the call graph for this function:

◆ refresh()

int refresh ( tSituation * s)
extern

Definition at line 306 of file grmain.cpp.

Here is the call graph for this function:

◆ shutdownCars()

void shutdownCars ( void )
extern

Definition at line 413 of file grmain.cpp.

Here is the call graph for this function:

◆ shutdownTrack()

void shutdownTrack ( void )
extern

Definition at line 469 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
extern

Definition at line 66 of file grmain.cpp.

◆ grCurTime

double grCurTime
extern

Definition at line 51 of file grmain.cpp.

◆ grDeltaTime

double grDeltaTime
extern

Definition at line 52 of file grmain.cpp.

◆ grHandle

void* grHandle
extern

Definition at line 58 of file grmain.cpp.

◆ grLodFactorValue

tdble grLodFactorValue
extern

Definition at line 69 of file grmain.cpp.

◆ grMaxDammage

tdble grMaxDammage
extern

Definition at line 55 of file grmain.cpp.

◆ grNbCars

int grNbCars
extern

Definition at line 56 of file grmain.cpp.

◆ grScreens

class cGrScreen* grScreens[]
extern

Definition at line 67 of file grmain.cpp.

◆ grTrackHandle

void* grTrackHandle
extern

Definition at line 59 of file grmain.cpp.

◆ grUseDetailedWheels

EWheelDetail grUseDetailedWheels
extern

Definition at line 70 of file grmain.cpp.

◆ grVectDispFlag

int grVectDispFlag[]
extern

◆ grVectFlag

int grVectFlag
extern

◆ grWinh

int grWinh

Definition at line 42 of file grmain.h.

◆ grWinw

int grWinw

Definition at line 42 of file grmain.h.

◆ grWinx

int grWinx
extern

Definition at line 61 of file grmain.cpp.

◆ grWiny

int grWiny

Definition at line 42 of file grmain.h.

◆ maxTextureUnits

int maxTextureUnits
extern

Definition at line 47 of file grmain.cpp.

◆ segIndice

int segIndice
extern

Definition at line 53 of file grmain.cpp.