TORCS  1.3.9
The Open Racing Car Simulator
cGrCarCamMirror Class Reference

#include <grcam.h>

Inheritance diagram for cGrCarCamMirror:
Collaboration diagram for cGrCarCamMirror:

Public Member Functions

 cGrCarCamMirror (cGrScreen *myscreen, int id, int drawCurr, int drawBG, float myfovy, float myfovymin, float myfovymax, float myfnear, float myffar=1500.0, float myfogstart=1400.0, float myfogend=1500.0)
 
virtual ~cGrCarCamMirror ()
 
void update (tCarElt *car, tSituation *s)
 
void limitFov (void)
 
void setViewport (int x, int y, int w, int h)
 
void setPos (int x, int y, int w, int h)
 
void activateViewport (void)
 
void store (void)
 
void display (void)
 
- Public Member Functions inherited from cGrPerspCamera
 cGrPerspCamera (class cGrScreen *myscreen, int id, int drawCurr, int drawDrv, int drawBG, int mirrorAllowed, float myfovy, float myfovymin, float myfovymax, float myfnear, float myffar=1500.0, float myfogstart=1400.0, float myfogend=1500.0)
 
void setProjection (void)
 
void setModelView (void)
 
void loadDefaults (char *attr)
 
void setZoom (int cmd)
 
float getLODFactor (float x, float y, float z)
 
float getFogStart (void)
 
float getFogEnd (void)
 
cGrPerspCameranext (void)
 
void limitFov (void)
 
void onSelect (tCarElt *car, tSituation *s)
 
virtual float getFovY (void)
 
- Public Member Functions inherited from cGrCamera
 cGrCamera (class cGrScreen *myscreen, int myid=0, int mydrawCurrent=0, int mydrawdrv=0, int mydrawBackground=0, int mymirrorAllowed=0)
 
virtual ~cGrCamera ()
 
void action (void)
 
int getId (void)
 
int getDrawCurrent (void)
 
int getDrawDriver (void)
 
int getDrawBackground (void)
 
int isMirrorAllowed (void)
 
t3DdgetPos (void)
 
sgVec3 * getPosv (void)
 
sgVec3 * getSpeedv (void)
 
t3DdgetCenter (void)
 
sgVec3 * getCenterv (void)
 
t3DdgetUp (void)
 
sgVec3 * getUpv (void)
 
void add (tGrCamHead *head)
 
void remove (tGrCamHead *head)
 
float getDist2 (tCarElt *car)
 
cGrCameranext (void)
 

Protected Attributes

int vpx
 
int vpy
 
int vpw
 
int vph
 
int tw
 
int th
 
int mx
 
int my
 
int mw
 
int mh
 
float tsu
 
float tsv
 
float teu
 
float tev
 
GLuint tex
 
cGrOrthoCameraviewCam
 
- Protected Attributes inherited from cGrPerspCamera
float fovy
 
float fovymin
 
float fovymax
 
float fovydflt
 
float fnear
 
float ffar
 
float fogstart
 
float fogend
 
- Protected Attributes inherited from cGrCamera
sgVec3 speed
 
sgVec3 eye
 
sgVec3 center
 
sgVec3 up
 
class cGrScreenscreen
 

Detailed Description

Definition at line 232 of file grcam.h.

Constructor & Destructor Documentation

◆ cGrCarCamMirror()

cGrCarCamMirror::cGrCarCamMirror ( cGrScreen myscreen,
int  id,
int  drawCurr,
int  drawBG,
float  myfovy,
float  myfovymin,
float  myfovymax,
float  myfnear,
float  myffar = 1500.0,
float  myfogstart = 1400.0,
float  myfogend = 1500.0 
)
inline

Definition at line 243 of file grcam.h.

Here is the call graph for this function:

◆ ~cGrCarCamMirror()

cGrCarCamMirror::~cGrCarCamMirror ( )
virtual

Definition at line 290 of file grcam.cpp.

Member Function Documentation

◆ activateViewport()

void cGrCarCamMirror::activateViewport ( void  )

Definition at line 381 of file grcam.cpp.

◆ display()

void cGrCarCamMirror::display ( void  )

Definition at line 404 of file grcam.cpp.

Here is the call graph for this function:

◆ limitFov()

void cGrCarCamMirror::limitFov ( void  )

Definition at line 297 of file grcam.cpp.

Here is the call graph for this function:

◆ setPos()

void cGrCarCamMirror::setPos ( int  x,
int  y,
int  w,
int  h 
)

Definition at line 345 of file grcam.cpp.

Here is the call graph for this function:

◆ setViewport()

void cGrCarCamMirror::setViewport ( int  x,
int  y,
int  w,
int  h 
)

Definition at line 330 of file grcam.cpp.

Here is the call graph for this function:

◆ store()

void cGrCarCamMirror::store ( void  )

Definition at line 390 of file grcam.cpp.

◆ update()

void cGrCarCamMirror::update ( tCarElt car,
tSituation s 
)
virtual

Implements cGrPerspCamera.

Definition at line 302 of file grcam.cpp.

Member Data Documentation

◆ mh

int cGrCarCamMirror::mh
protected

Definition at line 237 of file grcam.h.

◆ mw

int cGrCarCamMirror::mw
protected

Definition at line 237 of file grcam.h.

◆ mx

int cGrCarCamMirror::mx
protected

Definition at line 237 of file grcam.h.

◆ my

int cGrCarCamMirror::my
protected

Definition at line 237 of file grcam.h.

◆ teu

float cGrCarCamMirror::teu
protected

Definition at line 238 of file grcam.h.

◆ tev

float cGrCarCamMirror::tev
protected

Definition at line 238 of file grcam.h.

◆ tex

GLuint cGrCarCamMirror::tex
protected

Definition at line 239 of file grcam.h.

◆ th

int cGrCarCamMirror::th
protected

Definition at line 236 of file grcam.h.

◆ tsu

float cGrCarCamMirror::tsu
protected

Definition at line 238 of file grcam.h.

◆ tsv

float cGrCarCamMirror::tsv
protected

Definition at line 238 of file grcam.h.

◆ tw

int cGrCarCamMirror::tw
protected

Definition at line 236 of file grcam.h.

◆ viewCam

cGrOrthoCamera* cGrCarCamMirror::viewCam
protected

Definition at line 240 of file grcam.h.

◆ vph

int cGrCarCamMirror::vph
protected

Definition at line 235 of file grcam.h.

◆ vpw

int cGrCarCamMirror::vpw
protected

Definition at line 235 of file grcam.h.

◆ vpx

int cGrCarCamMirror::vpx
protected

Definition at line 235 of file grcam.h.

◆ vpy

int cGrCarCamMirror::vpy
protected

Definition at line 235 of file grcam.h.


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