TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
cGrCarCamRoadFly Class Reference
Inheritance diagram for cGrCarCamRoadFly:
Collaboration diagram for cGrCarCamRoadFly:

Public Member Functions

 cGrCarCamRoadFly (class cGrScreen *myscreen, int id, int drawCurr, int drawBG, float fovy, float fovymin, float fovymax, float fnear, float ffar=1500.0, float myfogstart=1400.0, float myfogend=1500.0)
void update (tCarElt *car, tSituation *s)
void onSelect (tCarElt *car, tSituation *s)
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 current
float timer
float zOffset
float gain
float damp
float offset [3]
double currenttime
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 1057 of file grcam.cpp.

Constructor & Destructor Documentation

◆ cGrCarCamRoadFly()

cGrCarCamRoadFly::cGrCarCamRoadFly ( class cGrScreen * myscreen,
int id,
int drawCurr,
int drawBG,
float fovy,
float fovymin,
float fovymax,
float fnear,
float ffar = 1500.0,
float myfogstart = 1400.0,
float myfogend = 1500.0 )
inline

Definition at line 1068 of file grcam.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ onSelect()

void cGrCarCamRoadFly::onSelect ( tCarElt * car,
tSituation * s )
inlinevirtual

Implements cGrCamera.

Definition at line 1173 of file grcam.cpp.

◆ update()

void cGrCarCamRoadFly::update ( tCarElt * car,
tSituation * s )
inlinevirtual

Implements cGrPerspCamera.

Definition at line 1088 of file grcam.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ current

int cGrCarCamRoadFly::current
protected

Definition at line 1060 of file grcam.cpp.

◆ currenttime

double cGrCarCamRoadFly::currenttime
protected

Definition at line 1066 of file grcam.cpp.

◆ damp

float cGrCarCamRoadFly::damp
protected

Definition at line 1064 of file grcam.cpp.

◆ gain

float cGrCarCamRoadFly::gain
protected

Definition at line 1063 of file grcam.cpp.

◆ offset

float cGrCarCamRoadFly::offset[3]
protected

Definition at line 1065 of file grcam.cpp.

◆ timer

float cGrCarCamRoadFly::timer
protected

Definition at line 1061 of file grcam.cpp.

◆ zOffset

float cGrCarCamRoadFly::zOffset
protected

Definition at line 1062 of file grcam.cpp.


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