torcs - 1.2.2

src/modules/graphic/ssggraph/grscene.cpp File Reference

#include <math.h>
#include <stdlib.h>
#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
#include <GL/glut.h>
#include <plib/ssg.h>
#include <plib/ssgAux.h>
#include <tgfclient.h>
#include <track.h>
#include <car.h>
#include <graphic.h>
#include <robottools.h>
#include "grmain.h"
#include "grshadow.h"
#include "grskidmarks.h"
#include "grsmoke.h"
#include "grcar.h"
#include "grcam.h"
#include "grscene.h"
#include "grutil.h"
#include "grssgext.h"
#include "win32_glext.h"

Include dependency graph for grscene.cpp:

Include dependency graph

Defines

#define NB_BG_FACES   36
#define BG_DIST   1.0
#define DISTG   80

Functions

ssgEntity * grssgLoadAC3D (const char *fname, const ssgLoaderOptions *options)
int preScene (ssgEntity *e)
int grInitScene (void)
int grLoadScene (tTrack *track)
void grDrawScene (void)
void grShutdownScene (void)
void grDrawBackground (class cGrCamera *cam, class cGrBackgroundCam *bgCam)
void grCustomizePits (void)

Variables

int grWrldX
int grWrldY
int grWrldZ
int grWrldMaxSize
tTrackgrTrack
int BackgroundType = 0
GLuint BackgroundList = 0
GLuint BackgroundTex = 0
GLuint BackgroundList2
GLuint BackgroundTex2
ssgStateSelector * grEnvSelector
grMultiTexStategrEnvState = NULL
grMultiTexStategrEnvShadowState = NULL
grMultiTexStategrEnvShadowStateOnCars = NULL
ssgRoot * TheScene = 0
ssgBranch * SunAnchor = 0
ssgBranch * LandAnchor = 0
ssgBranch * CarsAnchor = 0
ssgBranch * ShadowAnchor = 0
ssgBranch * PitsAnchor = 0
ssgBranch * SmokeAnchor = 0
ssgBranch * SkidAnchor = 0
ssgBranch * CarlightAnchor = 0
ssgBranch * ThePits = 0
ssgTransform * sun = NULL

Define Documentation

#define BG_DIST   1.0
 

#define DISTG   80
 

#define NB_BG_FACES   36
 


Function Documentation

void grCustomizePits void   ) 
 

void grDrawBackground class cGrCamera cam,
class cGrBackgroundCam bgCam
 

void grDrawScene void   ) 
 

int grInitScene void   ) 
 

int grLoadScene tTrack track  ) 
 

void grShutdownScene void   ) 
 

ssgEntity* grssgLoadAC3D const char *  fname,
const ssgLoaderOptions *  options
 

int preScene ssgEntity *  e  ) 
 

Here is the call graph for this function:


Variable Documentation

GLuint BackgroundList = 0
 

GLuint BackgroundList2
 

GLuint BackgroundTex = 0
 

GLuint BackgroundTex2
 

int BackgroundType = 0
 

ssgBranch* CarlightAnchor = 0
 

ssgBranch* CarsAnchor = 0
 

ssgStateSelector* grEnvSelector
 

grMultiTexState* grEnvShadowState = NULL
 

grMultiTexState* grEnvShadowStateOnCars = NULL
 

grMultiTexState* grEnvState = NULL
 

tTrack* grTrack
 

int grWrldMaxSize
 

int grWrldX
 

int grWrldY
 

int grWrldZ
 

ssgBranch* LandAnchor = 0
 

ssgBranch* PitsAnchor = 0
 

ssgBranch* ShadowAnchor = 0
 

ssgBranch* SkidAnchor = 0
 

ssgBranch* SmokeAnchor = 0
 

ssgTransform* sun = NULL
 

ssgBranch* SunAnchor = 0
 

ssgBranch* ThePits = 0
 

ssgRoot* TheScene = 0
 


Generated at Thu Feb 26 21:53:18 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.