CDefaultApplication.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionCore.h>
5 #include <ionWindow.h>
6 
7 #include <simpleini/SimpleIni.h>
8 #undef CreateWindow
9 
10 
11 namespace ion
12 {
13 
15  {
16 
17  public:
18 
19  struct SSettings
20  {
21  int WindowMonitor = -1;
22  vec2i WindowSize = vec2i(1980, 1080);
26  float FontSize = 18.f;
27  float UIScale = 1.f;
28  };
29 
30  void LoadSettings();
31  CWindow * CreateWindowFromSettings(string const & Title);
32 
33  protected:
34 
36 
37  virtual void LoadAdditionalSettings(CSimpleIniA * ConfigFile);
38 
39  };
40 
41 }
vec2i WindowPosition
Definition: CDefaultApplication.h:23
EWindowType WindowType
Definition: CDefaultApplication.h:24
vec2i WindowSize
Definition: CDefaultApplication.h:22
Definition: CDefaultApplication.h:19
virtual void LoadAdditionalSettings(CSimpleIniA *ConfigFile)
Definition: CDefaultApplication.cpp:73
float UIScale
Definition: CDefaultApplication.h:27
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
CWindow * CreateWindowFromSettings(string const &Title)
Definition: CDefaultApplication.cpp:55
int WindowMonitor
Definition: CDefaultApplication.h:21
Definition: CWindow.h:16
Definition: IEventListener.h:8
Definition: CDefaultApplication.h:14
EVsyncMode VsyncMode
Definition: CDefaultApplication.h:25
vec2< int > vec2i
Definition: vec2.h:576
SSettings ApplicationSettings
Definition: CDefaultApplication.h:35
float FontSize
Definition: CDefaultApplication.h:26
EVsyncMode
Definition: CWindowManager.h:21
void LoadSettings()
Definition: CDefaultApplication.cpp:8
EWindowType
Definition: CWindowManager.h:15