galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::App Class Referencefinal

Base level class for any galaxy app. More...

#include <Application.hpp>

+ Collaboration diagram for galaxy::App:

Public Member Functions

 App (const std::string &config_file="config.json")
 Default constructor.
 
 ~App ()
 Destructor.
 
void run ()
 Loads the default appdata file.
 

Private Member Functions

 App (const App &)=delete
 Copy constructor.
 
 App (App &&)=delete
 Move constructor.
 
Appoperator= (const App &)=delete
 Copy assignment operator.
 
Appoperator= (App &&)=delete
 Move assignment operator.
 
void setup_logging ()
 
void setup_async ()
 
void setup_config (std::string_view config_file)
 
void setup_platform ()
 
void setup_fs ()
 
void setup_window ()
 
void setup_events ()
 
void setup_scripting ()
 

Detailed Description

Base level class for any galaxy app.

Definition at line 18 of file Application.hpp.

Constructor & Destructor Documentation

◆ 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_fileFilepath of config file.

Definition at line 33 of file Application.cpp.

+ Here is the call graph for this function:

◆ ~App()

galaxy::App::~App ( )

Destructor.

Definition at line 54 of file Application.cpp.

◆ App() [2/3]

galaxy::App::App ( const App & )
privatedelete

Copy constructor.

◆ App() [3/3]

galaxy::App::App ( App && )
privatedelete

Move constructor.

Member Function Documentation

◆ run()

void galaxy::App::run ( )

Loads the default appdata file.

Main game loop.

Definition at line 74 of file Application.cpp.

+ Here is the call graph for this function:

◆ 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

Definition at line 145 of file Application.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_async()

void galaxy::App::setup_async ( )
private

Definition at line 161 of file Application.cpp.

+ Here is the caller graph for this function:

◆ setup_config()

void galaxy::App::setup_config ( std::string_view config_file)
private

Definition at line 175 of file Application.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_platform()

void galaxy::App::setup_platform ( )
private

Definition at line 182 of file Application.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_fs()

void galaxy::App::setup_fs ( )
private

Definition at line 251 of file Application.cpp.

+ Here is the caller graph for this function:

◆ setup_window()

void galaxy::App::setup_window ( )
private

Definition at line 256 of file Application.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_events()

void galaxy::App::setup_events ( )
private

Definition at line 264 of file Application.cpp.

+ Here is the caller graph for this function:

◆ setup_scripting()

void galaxy::App::setup_scripting ( )
private

Definition at line 330 of file Application.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: