diff --git a/src/modules/graphic/osggraph/Utils/OsgOptions.cpp b/src/modules/graphic/osggraph/Utils/OsgOptions.cpp new file mode 100644 index 000000000..402ae3606 --- /dev/null +++ b/src/modules/graphic/osggraph/Utils/OsgOptions.cpp @@ -0,0 +1,54 @@ +/*************************************************************************** + + file : OsgOptions.cpp + created : Thu Mar 31 00:00:41 CEST 2015 + copyright : (C) 2015 by Xavier Bertaux + email : bertauxx@yahoo.fr + version : $Id: OsgOptions.cpp 4693 2012-04-13 03:12:09Z torcs-ng $ + + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include + +#include "OsgMain.h" +#include "OsgOptions.h" + +#define MAX_BODIES 2 +#define MAX_CLOUDS 3 +#define NMaxStars 3000 +#define NPLANETS 0 //No planets displayed +#define NB_BG_FACES 36 //Background faces +#define BG_DIST 1.0f +#define SKYDYNAMIC_THR 12000 //Skydynamic setting threshold. No dynamic sky below that. +#define CLEAR_CLOUD 1 +#define MORE_CLOUD 6 +#define SCARCE_CLOUD 5 +#define COVERAGE_CLOUD 8 + +static const char* ShadowValues[] = { GR_ATT_SHADOW_NONE, GR_ATT_SHADOW_SM, GR_ATT_SHADOW_SSM, GR_ATT_SHADOW_PSSM, GR_ATT_SHADOW_LSPM, GR_ATT_SHADOW_VOLUME, GR_ATT_SHADOW_VDSM}; +static const int NbShadowValues = sizeof(ShadowValues) / sizeof(ShadowValues[0]); +static const char* TexSizeValues[] = { GR_ATT_SHADOW_512, GR_ATT_SHADOW_1024, GR_ATT_SHADOW_2048, GR_ATT_SHADOW_4096, GR_ATT_SHADOW_8192 }; +static const int NbTexSizeValues = sizeof(TexSizeValues) / sizeof(TexSizeValues[0]); +static const char* QualityValues[] = { GR_ATT_AGR_LITTLE, GR_ATT_AGR_MEDIUM, GR_ATT_AGR_FULL }; +static const int NbQualityValues = sizeof(QualityValues) / sizeof(QualityValues[0]); +static const char* ShadersValues[] = { GR_VAL_NO, GR_VAL_YES }; +static const int NbShadersValues = sizeof(ShadersValues) / sizeof(ShadersValues[0]); +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) +{ +} diff --git a/src/modules/graphic/osggraph/Utils/OsgOptions.h b/src/modules/graphic/osggraph/Utils/OsgOptions.h new file mode 100644 index 000000000..7c6456c86 --- /dev/null +++ b/src/modules/graphic/osggraph/Utils/OsgOptions.h @@ -0,0 +1,35 @@ +/*************************************************************************** + + file : OsgOptions.h + created : Thu Mar 31 00:00:41 CEST 2015 + copyright : (C) 2015 by Xavier Bertaux + email : bertauxx@yahoo.fr + version : $Id: OsgOptions.h 4693 2012-04-13 03:12:09Z torcs-ng $ + + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include + +#ifndef _OSGOPTIONS_H_ +#define _OSGOPTIONS_H_ + +class SDOptions +{ +public: + SDOptions( void ); + ~SDOptions( void ); + +private: + +}; + +#endif /* _OSGOPTIONS_H_ */