TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
grcam.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <memory.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <plib/ssg.h>
#include <robottools.h>
#include <portability.h>
#include <graphic.h>
#include "grcam.h"
#include "grscreen.h"
#include "grscene.h"
#include "grshadow.h"
#include "grskidmarks.h"
#include "grsmoke.h"
#include "grcar.h"
#include "grmain.h"
#include "grutil.h"
#include <tgfclient.h>
Include dependency graph for grcam.cpp:

Go to the source code of this file.

Classes

class  cGrCarCamInside
class  cGrCarCamInsideFixedCar
class  cGrCarCamBehind
class  cGrCarCamBehind2
class  cGrCarCamFront
class  cGrCarCamSide
class  cGrCarCamUp
class  cGrCarCamCenter
class  cGrCarCamLookAt
class  cGrCarCamRoadNoZoom
class  cGrCarCamRoadFly
class  cGrCarCamRoadZoom
struct  tSchedView
class  cGrCarCamRoadZoomTVD

Macros

#define M(row, col)

Functions

static void grGetPreciseCarPosition (const tCarElt *car, double *x, double *y)
static void grTransformCarPointToRender (const tCarElt *car, tdble x, tdble y, tdble z, sgVec3 point)
static tdble grTrackHeightD (tTrackSeg *segment, double x, double y)
static void grMakeLookAtMat4 (sgMat4 dst, const sgVec3 eye, const sgVec3 center, const sgVec3 up)
static tdble GetDistToStart (tCarElt *car)
void grCamCreateSceneCameraList (class cGrScreen *myscreen, tGrCamHead *cams, tdble fovFactor)

Macro Definition Documentation

◆ M

#define M ( row,
col )
Value:
dst[row][col]

Function Documentation

◆ GetDistToStart()

tdble GetDistToStart ( tCarElt * car)
static

Definition at line 1260 of file grcam.cpp.

◆ grCamCreateSceneCameraList()

void grCamCreateSceneCameraList ( class cGrScreen * myscreen,
tGrCamHead * cams,
tdble fovFactor )

Definition at line 1452 of file grcam.cpp.

Here is the call graph for this function:

◆ grGetPreciseCarPosition()

void grGetPreciseCarPosition ( const tCarElt * car,
double * x,
double * y )
static

Definition at line 76 of file grcam.cpp.

◆ grMakeLookAtMat4()

void grMakeLookAtMat4 ( sgMat4 dst,
const sgVec3 eye,
const sgVec3 center,
const sgVec3 up )
static

Definition at line 104 of file grcam.cpp.

◆ grTrackHeightD()

tdble grTrackHeightD ( tTrackSeg * segment,
double x,
double y )
static

Definition at line 95 of file grcam.cpp.

Here is the call graph for this function:

◆ grTransformCarPointToRender()

void grTransformCarPointToRender ( const tCarElt * car,
tdble x,
tdble y,
tdble z,
sgVec3 point )
static

Definition at line 84 of file grcam.cpp.