torcs - 1.2.2

cGrScreen Class Reference

#include <grscreen.h>

Collaboration diagram for cGrScreen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 cGrScreen (int id)
 ~cGrScreen ()
void activate (int x, int y, int w, int h)
void desactivate (void)
void setZoom (int zoom)
int isInScreen (int x, int y)
void update (tSituation *s, float Fps)
void camDraw (tSituation *s)
void updateCurrent (tSituation *s)
void selectCamera (int cam)
void selectBoard (int brd)
void selectTrackMap ()
void setCurrentCar (tCarElt *newCurCar)
void initCams (tSituation *s)
void initBoard (void)
void selectNextCar (void)
void selectPrevCar (void)
void switchMirror (void)
tCarEltgetCurrentCar (void)
float getViewRatio (void)
int getCurCamHead (void)
int isActive (void)
int getId (void)
int getScrX (void)
int getScrY (void)
int getScrW (void)
int getScrH (void)
 cGrScreen (int id)
 ~cGrScreen ()
void activate (int x, int y, int w, int h)
void desactivate (void)
void setZoom (int zoom)
int isInScreen (int x, int y)
void update (tSituation *s, float Fps)
void camDraw (tSituation *s)
void updateCurrent (tSituation *s)
void selectCamera (int cam)
void selectBoard (int brd)
void selectTrackMap ()
void setCurrentCar (tCarElt *newCurCar)
void initCams (tSituation *s)
void initBoard (void)
void selectNextCar (void)
void selectPrevCar (void)
void switchMirror (void)
tCarEltgetCurrentCar (void)
float getViewRatio (void)
int getCurCamHead (void)
int isActive (void)
int getId (void)
int getScrX (void)
int getScrY (void)
int getScrW (void)
int getScrH (void)

Protected Member Functions

void loadParams (tSituation *s)
void loadParams (tSituation *s)

Protected Attributes

int id
tCarEltcurCar
tCarElt ** cars
int curCamHead
tGrCamHead cams [10]
cGrPerspCameracurCam
cGrCarCamMirrormirrorCam
cGrPerspCameradispCam
cGrOrthoCameraboardCam
cGrBackgroundCambgCam
cGrBoardboard
int drawCurrent
int scrx
int scry
int scrw
int scrh
float viewRatio
int active
int selectNextFlag
int selectPrevFlag
int mirrorFlag
tCarEltcurCar
tCarElt ** cars
cGrPerspCameracurCam
cGrCarCamMirrormirrorCam
cGrPerspCameradispCam
cGrOrthoCameraboardCam
cGrBackgroundCambgCam
cGrBoardboard

Constructor & Destructor Documentation

cGrScreen::cGrScreen int  id  ) 
 

cGrScreen::~cGrScreen  ) 
 

Here is the call graph for this function:

cGrScreen::cGrScreen int  id  ) 
 

cGrScreen::~cGrScreen  ) 
 


Member Function Documentation

void cGrScreen::activate int  x,
int  y,
int  w,
int  h
 

void cGrScreen::activate int  x,
int  y,
int  w,
int  h
 

Here is the call graph for this function:

void cGrScreen::camDraw tSituation s  ) 
 

void cGrScreen::camDraw tSituation s  ) 
 

Here is the call graph for this function:

void cGrScreen::desactivate void   ) 
 

void cGrScreen::desactivate void   ) 
 

int cGrScreen::getCurCamHead void   )  [inline]
 

int cGrScreen::getCurCamHead void   )  [inline]
 

tCarElt* cGrScreen::getCurrentCar void   )  [inline]
 

tCarElt* cGrScreen::getCurrentCar void   )  [inline]
 

int cGrScreen::getId void   )  [inline]
 

int cGrScreen::getId void   )  [inline]
 

int cGrScreen::getScrH void   )  [inline]
 

int cGrScreen::getScrH void   )  [inline]
 

int cGrScreen::getScrW void   )  [inline]
 

int cGrScreen::getScrW void   )  [inline]
 

int cGrScreen::getScrX void   )  [inline]
 

int cGrScreen::getScrX void   )  [inline]
 

int cGrScreen::getScrY void   )  [inline]
 

int cGrScreen::getScrY void   )  [inline]
 

float cGrScreen::getViewRatio void   )  [inline]
 

float cGrScreen::getViewRatio void   )  [inline]
 

void cGrScreen::initBoard void   ) 
 

void cGrScreen::initBoard void   ) 
 

Here is the call graph for this function:

void cGrScreen::initCams tSituation s  ) 
 

void cGrScreen::initCams tSituation s  ) 
 

Here is the call graph for this function:

int cGrScreen::isActive void   )  [inline]
 

int cGrScreen::isActive void   )  [inline]
 

int cGrScreen::isInScreen int  x,
int  y
 

int cGrScreen::isInScreen int  x,
int  y
 

void cGrScreen::loadParams tSituation s  )  [protected]
 

void cGrScreen::loadParams tSituation s  )  [protected]
 

Here is the call graph for this function:

void cGrScreen::selectBoard int  brd  ) 
 

void cGrScreen::selectBoard int  brd  ) 
 

Here is the call graph for this function:

void cGrScreen::selectCamera int  cam  ) 
 

void cGrScreen::selectCamera int  cam  ) 
 

Here is the call graph for this function:

void cGrScreen::selectNextCar void   ) 
 

void cGrScreen::selectNextCar void   ) 
 

void cGrScreen::selectPrevCar void   ) 
 

void cGrScreen::selectPrevCar void   ) 
 

void cGrScreen::selectTrackMap  ) 
 

void cGrScreen::selectTrackMap  ) 
 

Here is the call graph for this function:

void cGrScreen::setCurrentCar tCarElt newCurCar  ) 
 

void cGrScreen::setCurrentCar tCarElt newCurCar  ) 
 

void cGrScreen::setZoom int  zoom  ) 
 

void cGrScreen::setZoom int  zoom  ) 
 

Here is the call graph for this function:

void cGrScreen::switchMirror void   ) 
 

void cGrScreen::switchMirror void   ) 
 

Here is the call graph for this function:

void cGrScreen::update tSituation s,
float  Fps
 

void cGrScreen::update tSituation s,
float  Fps
 

Here is the call graph for this function:

void cGrScreen::updateCurrent tSituation s  ) 
 

void cGrScreen::updateCurrent tSituation s  ) 
 


Member Data Documentation

int cGrScreen::active [protected]
 

class cGrBackgroundCam* cGrScreen::bgCam [protected]
 

class cGrBackgroundCam* cGrScreen::bgCam [protected]
 

class cGrBoard* cGrScreen::board [protected]
 

class cGrBoard* cGrScreen::board [protected]
 

class cGrOrthoCamera* cGrScreen::boardCam [protected]
 

class cGrOrthoCamera* cGrScreen::boardCam [protected]
 

tGrCamHead cGrScreen::cams [protected]
 

tCarElt** cGrScreen::cars [protected]
 

tCarElt** cGrScreen::cars [protected]
 

class cGrPerspCamera* cGrScreen::curCam [protected]
 

class cGrPerspCamera* cGrScreen::curCam [protected]
 

int cGrScreen::curCamHead [protected]
 

tCarElt* cGrScreen::curCar [protected]
 

tCarElt* cGrScreen::curCar [protected]
 

class cGrPerspCamera* cGrScreen::dispCam [protected]
 

class cGrPerspCamera* cGrScreen::dispCam [protected]
 

int cGrScreen::drawCurrent [protected]
 

int cGrScreen::id [protected]
 

class cGrCarCamMirror* cGrScreen::mirrorCam [protected]
 

class cGrCarCamMirror* cGrScreen::mirrorCam [protected]
 

int cGrScreen::mirrorFlag [protected]
 

int cGrScreen::scrh [protected]
 

int cGrScreen::scrw [protected]
 

int cGrScreen::scrx [protected]
 

int cGrScreen::scry [protected]
 

int cGrScreen::selectNextFlag [protected]
 

int cGrScreen::selectPrevFlag [protected]
 

float cGrScreen::viewRatio [protected]
 


The documentation for this class was generated from the following files:
Generated at Thu Feb 26 21:54:05 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.