Base level class for any galaxy app.
More...
#include <Application.hpp>
|
| App (std::string_view log_dir, std::string_view config_file) |
| Default constructor.
|
|
| ~App () |
| Destructor.
|
|
void | load () |
| Loads the default appdata file.
|
|
void | run () |
| Runs the app.
|
|
|
std::optional< sf::Cursor > | m_cursor |
| SFML cursor handle. Needs to be kept in memory.
|
|
Base level class for any galaxy app.
Definition at line 41 of file Application.hpp.
◆ App() [1/3]
galaxy::core::App::App |
( |
std::string_view | log_dir, |
|
|
std::string_view | config_file ) |
|
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
-
log_dir | Specify the base directory to store log files. |
config_file | Filepath of config file. |
Definition at line 33 of file Application.cpp.
◆ ~App()
galaxy::core::App::~App |
( |
| ) |
|
◆ App() [2/3]
galaxy::core::App::App |
( |
const App & | | ) |
|
|
privatedelete |
◆ App() [3/3]
galaxy::core::App::App |
( |
App && | | ) |
|
|
privatedelete |
◆ load()
void galaxy::core::App::load |
( |
| ) |
|
◆ run()
void galaxy::core::App::run |
( |
| ) |
|
◆ operator=() [1/2]
App & galaxy::core::App::operator= |
( |
const App & | | ) |
|
|
privatedelete |
Copy assignment operator.
◆ operator=() [2/2]
App & galaxy::core::App::operator= |
( |
App && | | ) |
|
|
privatedelete |
Move assignment operator.
◆ setup_platform()
void galaxy::core::App::setup_platform |
( |
| ) |
|
|
private |
◆ setup_logging()
void galaxy::core::App::setup_logging |
( |
std::string_view | log_dir | ) |
|
|
private |
◆ setup_async()
void galaxy::core::App::setup_async |
( |
| ) |
|
|
private |
◆ setup_config()
void galaxy::core::App::setup_config |
( |
std::string_view | config_file | ) |
|
|
private |
◆ setup_fs()
void galaxy::core::App::setup_fs |
( |
| ) |
|
|
private |
◆ setup_window()
void galaxy::core::App::setup_window |
( |
| ) |
|
|
private |
◆ setup_events()
void galaxy::core::App::setup_events |
( |
| ) |
|
|
private |
◆ setup_nuklear()
void galaxy::core::App::setup_nuklear |
( |
| ) |
|
|
private |
◆ setup_loader()
void galaxy::core::App::setup_loader |
( |
| ) |
|
|
private |
◆ setup_meta()
void galaxy::core::App::setup_meta |
( |
| ) |
|
|
private |
◆ setup_scripting()
void galaxy::core::App::setup_scripting |
( |
| ) |
|
|
private |
◆ setup_services()
void galaxy::core::App::setup_services |
( |
| ) |
|
|
private |
◆ handle_events()
void galaxy::core::App::handle_events |
( |
sf::RenderWindow & | window | ) |
|
|
private |
◆ m_cursor
std::optional<sf::Cursor> galaxy::core::App::m_cursor |
|
private |
SFML cursor handle. Needs to be kept in memory.
Definition at line 110 of file Application.hpp.
The documentation for this class was generated from the following files: