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