#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 | grSetRenderOrigin (double x, double y) |
| void | grShutdownScene (void) |
| void | grDrawBackground (class cGrCamera *cam, class cGrBackgroundCam *bgCam) |
| void | grCustomizePits (void) |
Variables | |
| int | grWrldX |
| int | grWrldY |
| int | grWrldZ |
| int | grWrldMaxSize |
| sgVec3 | grRenderOrigin |
| tTrack * | grTrack |
| ssgStateSelector * | grEnvSelector |
| grMultiTexState * | grEnvState =NULL |
| grMultiTexState * | grEnvShadowState =NULL |
| grMultiTexState * | grEnvShadowStateOnCars =NULL |
| ssgRoot * | TheScene = 0 |
| static ssgRoot * | TheBackground = 0 |
| static ssgTransform * | WorldAnchor = 0 |
| ssgTransform * | SunAnchor = 0 |
| ssgBranch * | LandAnchor = 0 |
| ssgBranch * | CarsAnchor = 0 |
| ssgBranch * | ShadowAnchor = 0 |
| ssgBranch * | PitsAnchor = 0 |
| ssgTransform * | 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 65 of file grscene.cpp.
| #define NB_BG_FACES 36 |
Definition at line 64 of file grscene.cpp.
| void grCustomizePits | ( | void | ) |
| void grDrawBackground | ( | class cGrCamera * | cam, |
| class cGrBackgroundCam * | bgCam ) |
| void grDrawScene | ( | void | ) |
Definition at line 249 of file grscene.cpp.
| int grInitScene | ( | void | ) |
| int grLoadScene | ( | tTrack * | track | ) |
| void grSetRenderOrigin | ( | double | x, |
| double | y ) |
Definition at line 257 of file grscene.cpp.
| void grShutdownScene | ( | void | ) |
Definition at line 276 of file grscene.cpp.
|
extern |
Definition at line 1149 of file grloadac.cpp.
|
static |
| int preScene | ( | ssgEntity * | e | ) |
Definition at line 88 of file grscene.cpp.
| ssgBranch* CarlightAnchor = 0 |
Definition at line 79 of file grscene.cpp.
| ssgBranch* CarsAnchor = 0 |
Definition at line 74 of file grscene.cpp.
| ssgStateSelector* grEnvSelector |
Definition at line 60 of file grscene.cpp.
| grMultiTexState* grEnvShadowState =NULL |
Definition at line 62 of file grscene.cpp.
| grMultiTexState* grEnvShadowStateOnCars =NULL |
Definition at line 63 of file grscene.cpp.
| grMultiTexState* grEnvState =NULL |
Definition at line 61 of file grscene.cpp.
| sgVec3 grRenderOrigin |
Definition at line 57 of file grscene.cpp.
| tTrack* grTrack |
Definition at line 58 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 73 of file grscene.cpp.
|
static |
Definition at line 167 of file grscene.cpp.
| ssgBranch* PitsAnchor = 0 |
Definition at line 76 of file grscene.cpp.
| ssgBranch* ShadowAnchor = 0 |
Definition at line 75 of file grscene.cpp.
| ssgBranch* SkidAnchor = 0 |
Definition at line 78 of file grscene.cpp.
| ssgTransform* SmokeAnchor = 0 |
Definition at line 77 of file grscene.cpp.
| ssgTransform* sun_grscene = NULL |
Definition at line 82 of file grscene.cpp.
| ssgTransform* SunAnchor = 0 |
Definition at line 72 of file grscene.cpp.
|
static |
Definition at line 68 of file grscene.cpp.
| ssgBranch* ThePits = 0 |
Definition at line 81 of file grscene.cpp.
| ssgRoot* TheScene = 0 |
Definition at line 67 of file grscene.cpp.
|
static |
Definition at line 69 of file grscene.cpp.