|
SPARK
0.1.0
A general purpose game engine written in C++.
|
A class representing a SPARK application. More...
#include <Application.h>
Classes | |
| struct | Registries |
| A struct containing all the registries for the application. More... | |
| struct | Settings |
| A struct containing the settings for the application. More... | |
Public Member Functions | |
| Application (const Application &other)=delete | |
| Application (Application &&other) noexcept=default | |
| Application & | operator= (const Application &other)=delete |
| Application & | operator= (Application &&other) noexcept=default |
| void | run () |
| Runs the application. | |
| void | close () |
| Closes the application. | |
| Settings | settings () const |
| Gets the settings for the application. | |
| Window & | window () |
| Gets the window for the application. | |
| void | setScene (std::shared_ptr< core::Scene > scene) |
| Sets the scene to render. | |
| core::Scene & | scene () |
| Gets the scene to render. | |
| Registries & | registries () |
| Gets a reference to the registries for the application. | |
Static Public Member Functions | |
| static Application * | Instance () |
| Gets the instance of the application. | |
Friends | |
| class | SceneManager |
| template<typename... Tags> | |
| class | ApplicationBuilder |
A class representing a SPARK application.
|
static |
Gets the instance of the application.
|
nodiscard |
Gets a reference to the registries for the application.
|
nodiscard |
Gets the scene to render.
| void spark::core::Application::setScene | ( | std::shared_ptr< core::Scene > | scene | ) |
Sets the scene to render.
| scene | A shared pointer to the spark::core::Scene to render. |
|
nodiscard |
Gets the settings for the application.
|
nodiscard |
Gets the window for the application.