54 cGrCamera(
class cGrScreen *myscreen,
int myid = 0,
int mydrawCurrent = 0,
int mydrawdrv = 0,
int mydrawBackground = 0,
int mymirrorAllowed = 0) {
64 up[0] =
up[1] = 0.0;
up[2] = 1.0;
72 virtual void setZoom(
int cmd) = 0;
131 void add(tGrCamHead *head) {
136 void remove(tGrCamHead *head) {
163 float myfovy,
float myfovymin,
float myfovymax,
164 float myfnear,
float myffar = 1500.0,
float myfogstart = 1400.0,
float myfogend = 1500.0);
223 0.1f, 2000.0f, 100000.0f, 100000.0f) {
244 float myfovy,
float myfovymin,
float myfovymax,
245 float myfnear,
float myffar = 1500.0,
246 float myfogstart = 1400.0,
float myfogend = 1500.0)
248 myfovy, myfovymin, myfovymax,
249 myfnear, myffar, myfogstart, myfogend) {
250 glGenTextures (1, &
tex);
260 void setPos (
int x,
int y,
int w,
int h);
268 #define GR_ZOOM_OUT 1 269 #define GR_ZOOM_MAX 2 270 #define GR_ZOOM_MIN 3 271 #define GR_ZOOM_DFLT 4 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)
float getLODFactor(float x, float y, float z)
int getDrawBackground(void)
virtual void setModelView(void)=0
cars situation used to inform the GUI and the drivers
#define GF_TAILQ_INSERT_TAIL(head, elm, field)
Insert an element at the tail.
virtual void loadDefaults(char *attr)=0
void activateViewport(void)
virtual ~cGrCarCamMirror()
virtual float getFovY(void)
void loadDefaults(char *attr)
virtual void update(tCarElt *car, tSituation *s)=0
void update(tCarElt *car, tSituation *s)
void add(tGrCamHead *head)
cGrPerspCamera * next(void)
float tdble
Floating point type used in TORCS.
void update(tCarElt *car, tSituation *s)
void setViewport(int x, int y, int w, int h)
int isMirrorAllowed(void)
GF_TAILQ_HEAD(GrCamHead, cGrCamera)
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 grCamCreateSceneCameraList(class cGrScreen *myscreen, tGrCamHead *cams, tdble fovFactor)
virtual void setZoom(int cmd)=0
virtual void setProjection(void)=0
This is the car structure.
This is the race information structures.
void onSelect(tCarElt *car, tSituation *s)
void update(tCarElt *car, tSituation *s)
void onSelect(tCarElt *car, tSituation *s)
cGrBackgroundCam(class cGrScreen *myscreen)
#define GF_TAILQ_REMOVE(head, elm, field)
Remove an element.
void setPos(int x, int y, int w, int h)
#define GF_TAILQ_NEXT(elm, field)
Next element of a TAILQ.
virtual void onSelect(tCarElt *car, tSituation *s)=0
cGrOrthoCamera(class cGrScreen *myscreen, float myleft, float myright, float mybottom, float mytop)
void loadDefaults(char *attr)
cGrCamera(class cGrScreen *myscreen, int myid=0, int mydrawCurrent=0, int mydrawdrv=0, int mydrawBackground=0, int mymirrorAllowed=0)
virtual float getLODFactor(float x, float y, float z)=0
GF_TAILQ_ENTRY(cGrCamera) link
virtual float getFovY(void)
virtual void update(tCarElt *car, tSituation *s)=0
float getDist2(tCarElt *car)
Track Structure and Track Loader Module Definition.
float getLODFactor(float x, float y, float z)
sgVec3 * getCenterv(void)