#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 <portability.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 "grtexture.h"
Go to the source code of this file.
Macros | |
| #define | NB_BG_FACES 36 |
| #define | BG_DIST 1.0 |
Functions | |
| static void | initBackground (void) |
| 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 |
| tTrack * | grTrack |
| ssgStateSelector * | grEnvSelector |
| grMultiTexState * | grEnvState =NULL |
| grMultiTexState * | grEnvShadowState =NULL |
| grMultiTexState * | grEnvShadowStateOnCars =NULL |
| ssgRoot * | TheScene = 0 |
| static ssgRoot * | TheBackground = 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_grscene = NULL |
| static ssgLoaderOptionsEx | options |
| #define BG_DIST 1.0 |
Definition at line 64 of file grscene.cpp.
| #define NB_BG_FACES 36 |
Definition at line 63 of file grscene.cpp.
| void grCustomizePits | ( | void | ) |
| void grDrawBackground | ( | class cGrCamera * | cam, |
| class cGrBackgroundCam * | bgCam | ||
| ) |
| void grDrawScene | ( | void | ) |
Definition at line 244 of file grscene.cpp.
| int grInitScene | ( | void | ) |
| int grLoadScene | ( | tTrack * | track | ) |
| void grShutdownScene | ( | void | ) |
Definition at line 252 of file grscene.cpp.
| ssgEntity* grssgLoadAC3D | ( | const char * | fname, |
| const ssgLoaderOptions * | options | ||
| ) |
|
static |
| int preScene | ( | ssgEntity * | e | ) |
Definition at line 86 of file grscene.cpp.
| ssgBranch* CarlightAnchor = 0 |
Definition at line 77 of file grscene.cpp.
| ssgBranch* CarsAnchor = 0 |
Definition at line 72 of file grscene.cpp.
| ssgStateSelector* grEnvSelector |
Definition at line 59 of file grscene.cpp.
| grMultiTexState* grEnvShadowState =NULL |
Definition at line 61 of file grscene.cpp.
| grMultiTexState* grEnvShadowStateOnCars =NULL |
Definition at line 62 of file grscene.cpp.
| grMultiTexState* grEnvState =NULL |
Definition at line 60 of file grscene.cpp.
| tTrack* grTrack |
Definition at line 57 of file grscene.cpp.
| int grWrldMaxSize |
Definition at line 56 of file grscene.cpp.
| int grWrldX |
Definition at line 53 of file grscene.cpp.
| int grWrldY |
Definition at line 54 of file grscene.cpp.
| int grWrldZ |
Definition at line 55 of file grscene.cpp.
| ssgBranch* LandAnchor = 0 |
Definition at line 71 of file grscene.cpp.
|
static |
Definition at line 165 of file grscene.cpp.
| ssgBranch* PitsAnchor = 0 |
Definition at line 74 of file grscene.cpp.
| ssgBranch* ShadowAnchor = 0 |
Definition at line 73 of file grscene.cpp.
| ssgBranch* SkidAnchor = 0 |
Definition at line 76 of file grscene.cpp.
| ssgBranch* SmokeAnchor = 0 |
Definition at line 75 of file grscene.cpp.
| ssgTransform* sun_grscene = NULL |
Definition at line 80 of file grscene.cpp.
| ssgBranch* SunAnchor = 0 |
Definition at line 70 of file grscene.cpp.
|
static |
Definition at line 67 of file grscene.cpp.
| ssgBranch* ThePits = 0 |
Definition at line 79 of file grscene.cpp.
| ssgRoot* TheScene = 0 |
Definition at line 66 of file grscene.cpp.