- Update OsgGraph

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5992 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4229ec4b2fe9575b239a48aeb3574c7f64b41038
Former-commit-id: 586a061dae363918206d3077d47e13589d25e06b
This commit is contained in:
torcs-ng 2015-04-24 21:58:59 +00:00
parent 6dae0edbd1
commit 8095091a0a
3 changed files with 62 additions and 29 deletions

View file

@ -39,11 +39,11 @@
//extern osg::Timer m_timer;
//extern osg::Timer_t m_start_tick;
static SDOptions *Options = 0;
static SDCars *cars = 0;
static SDScenery *scenery = 0;
static SDRender *render = 0;
static SDScreens *screens = 0;
SDOptions *Options = 0;
SDCars *cars = 0;
SDScenery *scenery = 0;
SDRender *render = 0;
SDScreens *screens = 0;
void *getOptions()
{
@ -249,6 +249,8 @@ int initTrack(tTrack *track)
// Now, do the real track loading job.
grTrackHandle = GfParmReadFile(track->filename, GFPARM_RMODE_STD | GFPARM_RMODE_CREAT);
Options = new SDOptions;
scenery = new SDScenery;
render = new SDRender;

View file

@ -45,7 +45,38 @@ static const int NbShadersValues = sizeof(ShadersValues) / sizeof(ShadersValues[
static const int CloudsTextureIndices[TR_CLOUDS_FULL+1] = {1, 3, 5, 7, 8};
static const int NCloudsTextureIndices = sizeof(CloudsTextureIndices) / sizeof(int);
SDOptions::SDOptions(void)
SDOptions::SDOptions(void) :
_SmokeValue(0),
_SmokeDuration(0),
_SmokeInterval(0),
_SkidValue(0),
_SkidLength(0),
_SkidInterval(0),
_LOD(0),
_bgsky(true),
_DynamicSkyDome(0),
_SkyDomeDistance(20000),
_Max_Visibility(10000),
_PrecipitationDensity(100),
_Rain(0),
_CloudLayer(1),
_SceneLOD(0),
_Cockpit3D(false),
_ShadowType(0),
_ShadowSize(1024),
_ShadowQuality(0),
_Shaders(0),
_ShadersQuality(0),
_ShadersSize(256),
_NormalMap(false)
{
}

View file

@ -29,37 +29,37 @@ public:
~SDOptions( void );
private:
unsigned int _SmokeValue;
unsigned int _SmokeDuration;
unsigned int _SmokeInterval;
int _SmokeValue;
int _SmokeDuration;
int _SmokeInterval;
unsigned int _SkidValue;
unsigned int _SkidLength;
unsigned int _SkidInterval;
int _SkidValue;
int _SkidLength;
int _SkidInterval;
unsigned int _LOD;
int _LOD;
bool _bgsky;
unsigned int _DynamicSkyDome;
unsigned int _SkyDomeDistance;
unsigned int _Max_Visibility;
unsigned int _PrecipitationDensity;
unsigned int _Rain;
bool _bgsky;
int _DynamicSkyDome;
int _SkyDomeDistance;
int _Max_Visibility;
int _PrecipitationDensity;
int _Rain;
unsigned int _CloudLayer;
int _CloudLayer;
unsigned int _SceneLOD;
bool _Cockpit3D;
int _SceneLOD;
bool _Cockpit3D;
unsigned int _ShadowType;
int _ShadowSize;
unsigned int _ShadowQuality;
int _ShadowType;
int _ShadowSize;
int _ShadowQuality;
unsigned int _Shaders;
int _ShadersQuality;
int _ShadersSize;
int _Shaders;
int _ShadersQuality;
int _ShadersSize;
bool _NormalMap;
bool _NormalMap;
};
#endif /* _OSGOPTIONS_H_ */