TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
cGrOrthoCamera Class Reference

#include <grcam.h>

Inheritance diagram for cGrOrthoCamera:
Collaboration diagram for cGrOrthoCamera:

Public Member Functions

 cGrOrthoCamera (class cGrScreen *myscreen, float myleft, float myright, float mybottom, float mytop)
void setProjection (void)
void setModelView (void)
void update (tCarElt *car, tSituation *s)
float getLODFactor (float x, float y, float z)
void loadDefaults (char *attr)
void setZoom (int cmd)
void onSelect (tCarElt *car, tSituation *s)
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)
virtual float getFovY (void)
void add (tGrCamHead *head)
void remove (tGrCamHead *head)
float getDist2 (tCarElt *car)
cGrCamera * next (void)

Protected Attributes

float left
float right
float bottom
float top
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 204 of file grcam.h.

Constructor & Destructor Documentation

◆ cGrOrthoCamera()

cGrOrthoCamera::cGrOrthoCamera ( class cGrScreen * myscreen,
float myleft,
float myright,
float mybottom,
float mytop )
inline

Definition at line 213 of file grcam.h.

Here is the call graph for this function:

Member Function Documentation

◆ getLODFactor()

float cGrOrthoCamera::getLODFactor ( float x,
float y,
float z )
inlinevirtual

Implements cGrCamera.

Definition at line 225 of file grcam.h.

◆ loadDefaults()

void cGrOrthoCamera::loadDefaults ( char * attr)
inlinevirtual

Implements cGrCamera.

Definition at line 226 of file grcam.h.

◆ onSelect()

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

Implements cGrCamera.

Definition at line 228 of file grcam.h.

◆ setModelView()

void cGrOrthoCamera::setModelView ( void )
virtual

Implements cGrCamera.

Definition at line 281 of file grcam.cpp.

◆ setProjection()

void cGrOrthoCamera::setProjection ( void )
virtual

Implements cGrCamera.

Definition at line 274 of file grcam.cpp.

◆ setZoom()

void cGrOrthoCamera::setZoom ( int cmd)
inlinevirtual

Implements cGrCamera.

Definition at line 227 of file grcam.h.

◆ update()

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

Implements cGrCamera.

Definition at line 224 of file grcam.h.

Member Data Documentation

◆ bottom

float cGrOrthoCamera::bottom
protected

Definition at line 209 of file grcam.h.

◆ left

float cGrOrthoCamera::left
protected

Definition at line 207 of file grcam.h.

◆ right

float cGrOrthoCamera::right
protected

Definition at line 208 of file grcam.h.

◆ top

float cGrOrthoCamera::top
protected

Definition at line 210 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