raSystem  1.0 bata
raConfigLoader.h
Go to the documentation of this file.
1 #pragma once
2 
3  /*
4  config.ini:
5  [Grafik]
6  hoehe=800
7  weite=600
8  fullscreen=0
9  vsync=1
10  multisamplingqualitet=0
11  multisamplingcount=1
12  [Sound]
13  ausgabe=0; // 0 = WASAPI; 1 = WINMM; 2 = DSOUND
14  soundkarte=0; // Soundkarte
15  samplerate=44100; // SampleRate
16  bit=16; // 16 ; 24; 32; 0 == PCM_FLOAT
17  channels=2; // 1 = Mono; 2 = Stereo; 4 = Quad; 6 = 5.1; 8 = 7.1;
18  b3d=0;
19  hardware=0;
20  */
21 
22  class raConfig
23  {
24  public:
25  raConfig() { }
26 
27  UINT Hoehe, weite;
28  bool FullScreen;
29  bool vsync;
32 
33  int Driver; // 0 = WASAPI; 1 = WINMM; 2 = DSOUND
34  int Soundkarte; // Soundkarte
35  int SampleRate; // SampleRate
36  int Bit; // 16 ; 24; 32; 0 == PCM_FLOAT
37  int Channels; // 1 = Mono; 2 = Stereo; 4 = Quad; 6 = 5.1; 8 = 7.1;
38  bool b3D;
39  bool Hardware;
40  };
41 
43  {
44  public:
46 
47  static bool LoadConfig(IConfigFile* mconfig);
48  static bool LoadStandardConfig();
49 
50  static raConfig GetConfig() { return m_config; }
51  private:
52  static raConfig m_config;
53  };
#define RAPI
Definition: raMain.h:11
int MultiSamplingQualitet
int Soundkarte
bool Hardware
bool FullScreen
int MultiSamplingCount
static raConfig GetConfig()
int SampleRate