TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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)
cGrPerspCamera * next (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)
t3Dd * getPos (void)
sgVec3 * getPosv (void)
sgVec3 * getWorldPosv (void)
sgVec3 * getSpeedv (void)
t3Dd * getCenter (void)
sgVec3 * getCenterv (void)
t3Dd * getUp (void)
sgVec3 * getUpv (void)
void add (tGrCamHead *head)
void remove (tGrCamHead *head)
float getDist2 (tCarElt *car)
cGrCamera * next (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
cGrOrthoCamera * viewCam
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
int renderCoordinatesLocal
sgVec3 renderOrigin
class cGrScreen * screen

Additional Inherited Members

Protected Member Functions inherited from cGrCamera
void setLocalRenderCoordinates (void)
void rebaseLocalRenderCoordinates (void)

Detailed Description

Definition at line 247 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 258 of file grcam.h.

Here is the call graph for this function:

◆ ~cGrCarCamMirror()

cGrCarCamMirror::~cGrCarCamMirror ( )
virtual

Definition at line 334 of file grcam.cpp.

Member Function Documentation

◆ activateViewport()

void cGrCarCamMirror::activateViewport ( void )

Definition at line 409 of file grcam.cpp.

◆ display()

void cGrCarCamMirror::display ( void )

Definition at line 432 of file grcam.cpp.

◆ limitFov()

void cGrCarCamMirror::limitFov ( void )

Definition at line 341 of file grcam.cpp.

◆ setPos()

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

Definition at line 373 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 358 of file grcam.cpp.

Here is the call graph for this function:

◆ store()

void cGrCarCamMirror::store ( void )

Definition at line 418 of file grcam.cpp.

◆ update()

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

Implements cGrPerspCamera.

Definition at line 346 of file grcam.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ mh

int cGrCarCamMirror::mh
protected

Definition at line 252 of file grcam.h.

◆ mw

int cGrCarCamMirror::mw
protected

Definition at line 252 of file grcam.h.

◆ mx

int cGrCarCamMirror::mx
protected

Definition at line 252 of file grcam.h.

◆ my

int cGrCarCamMirror::my
protected

Definition at line 252 of file grcam.h.

◆ teu

float cGrCarCamMirror::teu
protected

Definition at line 253 of file grcam.h.

◆ tev

float cGrCarCamMirror::tev
protected

Definition at line 253 of file grcam.h.

◆ tex

GLuint cGrCarCamMirror::tex
protected

Definition at line 254 of file grcam.h.

◆ th

int cGrCarCamMirror::th
protected

Definition at line 251 of file grcam.h.

◆ tsu

float cGrCarCamMirror::tsu
protected

Definition at line 253 of file grcam.h.

◆ tsv

float cGrCarCamMirror::tsv
protected

Definition at line 253 of file grcam.h.

◆ tw

int cGrCarCamMirror::tw
protected

Definition at line 251 of file grcam.h.

◆ viewCam

cGrOrthoCamera* cGrCarCamMirror::viewCam
protected

Definition at line 255 of file grcam.h.

◆ vph

int cGrCarCamMirror::vph
protected

Definition at line 250 of file grcam.h.

◆ vpw

int cGrCarCamMirror::vpw
protected

Definition at line 250 of file grcam.h.

◆ vpx

int cGrCarCamMirror::vpx
protected

Definition at line 250 of file grcam.h.

◆ vpy

int cGrCarCamMirror::vpy
protected

Definition at line 250 of file grcam.h.


The documentation for this class was generated from the following files:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/modules/graphic/ssggraph/grcam.h
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/modules/graphic/ssggraph/grcam.cpp