- push OsgOptions files

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

Former-commit-id: bdd31937c428ea14a9a894e8dd7e2afd39abcf2c
Former-commit-id: 55e85aadee0290851e2c6cd2fa056f24711702ab
This commit is contained in:
torcs-ng 2015-04-01 21:43:04 +00:00
parent 2e4667344a
commit a3045c2eb5
2 changed files with 89 additions and 0 deletions

View file

@ -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 <stdlib.h>
#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)
{
}

View file

@ -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 <stdlib.h>
#ifndef _OSGOPTIONS_H_
#define _OSGOPTIONS_H_
class SDOptions
{
public:
SDOptions( void );
~SDOptions( void );
private:
};
#endif /* _OSGOPTIONS_H_ */