mod_sim_settings.hh

Go to the documentation of this file.
00001 /*
00014  * LEGAL:   COPYRIGHT (C) 2007 JIM E. BROOKS
00015  *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
00016  *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
00017  *****************************************************************************/
00018 
00019 #if COMPILING_MODULE
00020 #ifndef MOD_SIM_SETTINGS_HH
00021 #define MOD_SIM_SETTINGS_HH 1
00022 
00023 namespace mod_sim {
00024 
00034 class Settings
00035 {
00036 private:
00053     class SettingsConfReader : public ConfReader
00054     {
00055     public:
00056         void ProcessField( string& field, ifstream& conf );
00057     };
00058 
00059 private:
00060     void    ReadSettingsConf( void );
00061 
00062 public:
00063             Settings( void );
00064     void    Init( int argc, char** argv );
00065 
00066     // -- World settings are at mod_sim_world.hh not here --
00067 
00068     // Cmd-line args:
00069     bool    mNoReload;
00070     bool    mReloadView;
00071     bool    mDemoF14Tomcat;
00072     bool    mFog;
00073 
00074     // settings_conf.txt describes the following members.
00075 
00076     // settings.conf: Animation:
00077     bool    mSplash;
00078     fp      mLightStep;
00079     fp      mAlienTextureShimmerDegInc;
00080 
00081     // settings.conf: HUD:
00082     uint    mHudLod;
00083 
00084     
00085 };
00086 
00087 ostream& operator<<( ostream& strm, const Settings& settings );
00088 
00089 #if MOD_SIM_SETTINGS_CC
00090 Settings gSettings;
00091 #else
00092 extern Settings gSettings;
00093 #endif
00094 
00095 //------------------------------------------------------------------------------
00096 
00097 const string
00098 GetTextureDir( void );
00099 
00100 const string
00101 GetModelPathname( const string& modelName );
00102 
00103 } // namespace mod_sim
00104 
00105 #endif // MOD_SIM_SETTINGS_HH
00106 #endif // COMPILING_MODULE
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:13 2007