OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
displayconfig.h
1 /*
2  Copyright (C) 2014 - 2016 Mutzii
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 #ifndef DISPLAYCONFIG_H
19 #define DISPLAYCONFIG_H
20 
21 #include "index.h"
22 #include "configmanager.h"
23 
24 namespace Engine
25 {
29  class DisplayConfig : public InstanceConfig< DisplayConfig >
30  {
31  public:
32  DisplayConfig();
33  DisplayConfig( const std::string &file_name );
34  ~DisplayConfig(){}
35 
36  void initialize(void);
37 
38  void read_title ( const std::string & content );
39  void read_windowsize ( const std::string & content );
40  void read_msaa ( const std::string & content );
41  void read_context_major ( const std::string & content );
42  void read_context_minor ( const std::string & content );
43  void read_vsync ( const std::string & content );
44  void read_perspective ( const std::string & content );
45 
46  public:
47 
48  string mTitle;
49  glm::mat4 mPerspective;
50  int mWidth;
51  int mHeight;
52  int mMSAA;
53  int mContext_major;
54  int mContext_minor;
55  int mVSYNC;
56  };
57 
58 }
59 
60 #endif // DISPLAYCONFIG_H
Definition: element.h:23
The DisplayConfig - config class.
Definition: displayconfig.h:29
Definition: configmanager.h:36