World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Application.h
См. документацию.
1 #pragma once
2 
3 #include <string>
4 
5 #include "ApplicationConfig.h"
6 
7 class Application {
8  public:
10  bool ValidateConfig(std::string &out_errors);
11 
12  const std::string &GetMm7InstallPath() const;
13  void SetMm7InstallPath(const std::string &path);
14 
15  void SetRenderer(const std::string &renderer) { config.renderer = renderer; }
16  const std::string &GetRenderer() const { return config.renderer; }
17 
18  void Run();
19 
20  private:
22 };
Application::ValidateConfig
bool ValidateConfig(std::string &out_errors)
Definition: Application.cpp:107
path
GLsizei const GLchar *const * path
Definition: SDL_opengl_glext.h:3733
Application::SetRenderer
void SetRenderer(const std::string &renderer)
Definition: Application.h:15
ApplicationConfig
Definition: ApplicationConfig.h:4
Application::SetMm7InstallPath
void SetMm7InstallPath(const std::string &path)
Definition: Application.cpp:89
Application
Definition: Configuration.h:5
Application::GetRenderer
const std::string & GetRenderer() const
Definition: Application.h:16
Application::Run
void Run()
Definition: Application.cpp:120
string
GLsizei const GLchar *const * string
Definition: SDL_opengl_glext.h:691
Application::config
ApplicationConfig config
Definition: Application.h:21
Application::GetMm7InstallPath
const std::string & GetMm7InstallPath() const
Definition: Application.cpp:92
ApplicationConfig.h
Application::Configure
Application * Configure(ApplicationConfig &config)
Definition: Application.cpp:84
config
EGLConfig config
Definition: SDL_egl.h:1149