TORCS  1.3.9
The Open Racing Car Simulator
grcarlight.h File Reference


More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ssgVtxTableCarlight
 
struct  tgrCarlight_t
 

Macros

#define MAX_NUMBER_LIGHT   4+4+4+2
 
#define LIGHT_TYPE_FRONT   1
 
#define LIGHT_TYPE_FRONT2   2
 
#define LIGHT_TYPE_REAR   3
 
#define LIGHT_TYPE_REAR2   4
 
#define LIGHT_TYPE_BRAKE   5
 
#define LIGHT_TYPE_BRAKE2   6
 
#define LIGHT_TYPE_REVERSE   7
 
#define LIGHT_NO_TYPE   0
 

Typedefs

typedef struct tgrCarlight_t tgrCarlight
 

Functions

void grInitCarlight (int index)
 
void grAddCarlight (tCarElt *car, int type, sgVec3 pos, double size)
 
void grLinkCarlights (tCarElt *car)
 
void grUpdateCarlight (tCarElt *car, class cGrPerspCamera *curCam, int dispflag)
 
void grShudownCarlight (void)
 

Detailed Description


Version
$Id$

Definition in file grcarlight.h.

Macro Definition Documentation

◆ LIGHT_NO_TYPE

#define LIGHT_NO_TYPE   0

Definition at line 95 of file grcarlight.h.

◆ LIGHT_TYPE_BRAKE

#define LIGHT_TYPE_BRAKE   5

Definition at line 92 of file grcarlight.h.

◆ LIGHT_TYPE_BRAKE2

#define LIGHT_TYPE_BRAKE2   6

Definition at line 93 of file grcarlight.h.

◆ LIGHT_TYPE_FRONT

#define LIGHT_TYPE_FRONT   1

Definition at line 88 of file grcarlight.h.

◆ LIGHT_TYPE_FRONT2

#define LIGHT_TYPE_FRONT2   2

Definition at line 89 of file grcarlight.h.

◆ LIGHT_TYPE_REAR

#define LIGHT_TYPE_REAR   3

Definition at line 90 of file grcarlight.h.

◆ LIGHT_TYPE_REAR2

#define LIGHT_TYPE_REAR2   4

Definition at line 91 of file grcarlight.h.

◆ LIGHT_TYPE_REVERSE

#define LIGHT_TYPE_REVERSE   7

Definition at line 94 of file grcarlight.h.

◆ MAX_NUMBER_LIGHT

#define MAX_NUMBER_LIGHT   4+4+4+2

Definition at line 81 of file grcarlight.h.

Typedef Documentation

◆ tgrCarlight

typedef struct tgrCarlight_t tgrCarlight

Function Documentation

◆ grAddCarlight()

void grAddCarlight ( tCarElt car,
int  type,
sgVec3  pos,
double  size 
)

Definition at line 358 of file grcarlight.cpp.

Here is the call graph for this function:

◆ grInitCarlight()

void grInitCarlight ( int  index)

Definition at line 225 of file grcarlight.cpp.

Here is the call graph for this function:

◆ grLinkCarlights()

void grLinkCarlights ( tCarElt car)

Definition at line 403 of file grcarlight.cpp.

◆ grShudownCarlight()

void grShudownCarlight ( void  )

Definition at line 317 of file grcarlight.cpp.

◆ grUpdateCarlight()

void grUpdateCarlight ( tCarElt car,
class cGrPerspCamera curCam,
int  dispflag 
)

Definition at line 409 of file grcarlight.cpp.

Here is the call graph for this function: