TORCS  1.3.9
The Open Racing Car Simulator
cGrScreen Class Reference

#include <grscreen.h>

Collaboration diagram for cGrScreen:

Public Member Functions

 cGrScreen (int id)
 
 ~cGrScreen ()
 
void activate (int x, int y, int w, int h)
 
void desactivate (void)
 
void setZoom (long zoom)
 
int isInScreen (int x, int y)
 
void update (tSituation *s, float Fps)
 
void camDraw (tSituation *s)
 
void updateCurrent (tSituation *s)
 
void selectCamera (long cam)
 
void selectBoard (long 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)
 
cGrCameragetCurCamera (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)
 

Protected Attributes

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

Detailed Description

Definition at line 27 of file grscreen.h.

Constructor & Destructor Documentation

◆ cGrScreen()

cGrScreen::cGrScreen ( int  id)

Definition at line 41 of file grscreen.cpp.

◆ ~cGrScreen()

cGrScreen::~cGrScreen ( )

Definition at line 62 of file grscreen.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ activate()

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

Definition at line 113 of file grscreen.cpp.

Here is the call graph for this function:

◆ camDraw()

void cGrScreen::camDraw ( tSituation s)

Definition at line 258 of file grscreen.cpp.

Here is the call graph for this function:

◆ desactivate()

void cGrScreen::desactivate ( void  )

Definition at line 133 of file grscreen.cpp.

◆ getCurCamera()

cGrCamera* cGrScreen::getCurCamera ( void  )
inline

Definition at line 83 of file grscreen.h.

◆ getCurCamHead()

int cGrScreen::getCurCamHead ( void  )
inline

Definition at line 85 of file grscreen.h.

◆ getCurrentCar()

tCarElt* cGrScreen::getCurrentCar ( void  )
inline

Definition at line 82 of file grscreen.h.

◆ getId()

int cGrScreen::getId ( void  )
inline

Definition at line 87 of file grscreen.h.

◆ getScrH()

int cGrScreen::getScrH ( void  )
inline

Definition at line 91 of file grscreen.h.

◆ getScrW()

int cGrScreen::getScrW ( void  )
inline

Definition at line 90 of file grscreen.h.

◆ getScrX()

int cGrScreen::getScrX ( void  )
inline

Definition at line 88 of file grscreen.h.

◆ getScrY()

int cGrScreen::getScrY ( void  )
inline

Definition at line 89 of file grscreen.h.

◆ getViewRatio()

float cGrScreen::getViewRatio ( void  )
inline

Definition at line 84 of file grscreen.h.

◆ initBoard()

void cGrScreen::initBoard ( void  )

Definition at line 507 of file grscreen.cpp.

Here is the call graph for this function:

◆ initCams()

void cGrScreen::initCams ( tSituation s)

Definition at line 454 of file grscreen.cpp.

Here is the call graph for this function:

◆ isActive()

int cGrScreen::isActive ( void  )
inline

Definition at line 86 of file grscreen.h.

◆ isInScreen()

int cGrScreen::isInScreen ( int  x,
int  y 
)

Definition at line 90 of file grscreen.cpp.

◆ loadParams()

void cGrScreen::loadParams ( tSituation s)
protected

Definition at line 391 of file grscreen.cpp.

Here is the call graph for this function:

◆ selectBoard()

void cGrScreen::selectBoard ( long  brd)

Definition at line 154 of file grscreen.cpp.

Here is the call graph for this function:

◆ selectCamera()

void cGrScreen::selectCamera ( long  cam)

Definition at line 198 of file grscreen.cpp.

Here is the call graph for this function:

◆ selectNextCar()

void cGrScreen::selectNextCar ( void  )

Definition at line 144 of file grscreen.cpp.

◆ selectPrevCar()

void cGrScreen::selectPrevCar ( void  )

Definition at line 149 of file grscreen.cpp.

◆ selectTrackMap()

void cGrScreen::selectTrackMap ( )

Definition at line 159 of file grscreen.cpp.

Here is the call graph for this function:

◆ setCurrentCar()

void cGrScreen::setCurrentCar ( tCarElt newCurCar)

Definition at line 107 of file grscreen.cpp.

◆ setZoom()

void cGrScreen::setZoom ( long  zoom)

Definition at line 139 of file grscreen.cpp.

Here is the call graph for this function:

◆ switchMirror()

void cGrScreen::switchMirror ( void  )

Definition at line 179 of file grscreen.cpp.

Here is the call graph for this function:

◆ update()

void cGrScreen::update ( tSituation s,
float  Fps 
)

Definition at line 303 of file grscreen.cpp.

Here is the call graph for this function:

◆ updateCurrent()

void cGrScreen::updateCurrent ( tSituation s)

Member Data Documentation

◆ active

int cGrScreen::active
protected

Definition at line 50 of file grscreen.h.

◆ bgCam

class cGrBackgroundCam* cGrScreen::bgCam
protected

Definition at line 41 of file grscreen.h.

◆ board

class cGrBoard* cGrScreen::board
protected

Definition at line 43 of file grscreen.h.

◆ boardCam

class cGrOrthoCamera* cGrScreen::boardCam
protected

Definition at line 40 of file grscreen.h.

◆ cams

tGrCamHead cGrScreen::cams[10]
protected

Definition at line 35 of file grscreen.h.

◆ cars

tCarElt** cGrScreen::cars
protected

Definition at line 32 of file grscreen.h.

◆ curCam

class cGrPerspCamera* cGrScreen::curCam
protected

Definition at line 37 of file grscreen.h.

◆ curCamHead

int cGrScreen::curCamHead
protected

Definition at line 34 of file grscreen.h.

◆ curCar

tCarElt* cGrScreen::curCar
protected

Definition at line 31 of file grscreen.h.

◆ dispCam

class cGrPerspCamera* cGrScreen::dispCam
protected

Definition at line 39 of file grscreen.h.

◆ drawCurrent

int cGrScreen::drawCurrent
protected

Definition at line 45 of file grscreen.h.

◆ id

int cGrScreen::id
protected

Definition at line 29 of file grscreen.h.

◆ mirrorCam

class cGrCarCamMirror* cGrScreen::mirrorCam
protected

Definition at line 38 of file grscreen.h.

◆ mirrorFlag

int cGrScreen::mirrorFlag
protected

Definition at line 54 of file grscreen.h.

◆ scrh

int cGrScreen::scrh
protected

Definition at line 47 of file grscreen.h.

◆ scrw

int cGrScreen::scrw
protected

Definition at line 47 of file grscreen.h.

◆ scrx

int cGrScreen::scrx
protected

Definition at line 47 of file grscreen.h.

◆ scry

int cGrScreen::scry
protected

Definition at line 47 of file grscreen.h.

◆ selectNextFlag

int cGrScreen::selectNextFlag
protected

Definition at line 52 of file grscreen.h.

◆ selectPrevFlag

int cGrScreen::selectPrevFlag
protected

Definition at line 53 of file grscreen.h.

◆ viewRatio

float cGrScreen::viewRatio
protected

Definition at line 48 of file grscreen.h.


The documentation for this class was generated from the following files: