Base level class for any galaxy app.
More...
#include <Application.hpp>
|
| App (const std::string &config_file="config.json") |
| Default constructor.
|
|
| ~App () |
| Destructor.
|
|
void | run () |
| Loads the default appdata file.
|
|
Base level class for any galaxy app.
Definition at line 18 of file Application.hpp.
◆ App() [1/3]
galaxy::App::App |
( |
const std::string & | config_file = "config.json" | ) |
|
|
explicit |
Default constructor.
Sets up the engine. You need to inherit this and call it from a subclass. Also calls std::srand(std::time(nullptr)) for you.
- Parameters
-
config_file | Filepath of config file. |
Definition at line 33 of file Application.cpp.
◆ ~App()
◆ App() [2/3]
galaxy::App::App |
( |
const App & | | ) |
|
|
privatedelete |
◆ App() [3/3]
galaxy::App::App |
( |
App && | | ) |
|
|
privatedelete |
◆ run()
void galaxy::App::run |
( |
| ) |
|
Loads the default appdata file.
Main game loop.
Definition at line 74 of file Application.cpp.
◆ operator=() [1/2]
App & galaxy::App::operator= |
( |
const App & | | ) |
|
|
privatedelete |
Copy assignment operator.
◆ operator=() [2/2]
App & galaxy::App::operator= |
( |
App && | | ) |
|
|
privatedelete |
Move assignment operator.
◆ setup_logging()
void galaxy::App::setup_logging |
( |
| ) |
|
|
private |
◆ setup_async()
void galaxy::App::setup_async |
( |
| ) |
|
|
private |
◆ setup_config()
void galaxy::App::setup_config |
( |
std::string_view | config_file | ) |
|
|
private |
◆ setup_platform()
void galaxy::App::setup_platform |
( |
| ) |
|
|
private |
◆ setup_fs()
void galaxy::App::setup_fs |
( |
| ) |
|
|
private |
◆ setup_window()
void galaxy::App::setup_window |
( |
| ) |
|
|
private |
◆ setup_events()
void galaxy::App::setup_events |
( |
| ) |
|
|
private |
◆ setup_scripting()
void galaxy::App::setup_scripting |
( |
| ) |
|
|
private |
The documentation for this class was generated from the following files: