|
|
PixelBullet
0.0.1
A C++ game engine
|
Main application class. More...
#include <application.h>
Public Member Functions | |
| Application (ApplicationSpecification specification, const ApplicationBootstrap &bootstrap) | |
| virtual | ~Application () |
| Application (const Application &)=delete | |
| Application & | operator= (const Application &)=delete |
| Application (Application &&)=delete | |
| Application & | operator= (Application &&)=delete |
| void | OnEvent (Event &e) |
| template<typename T , typename... Args> | |
| T * | PushLayer (Args &&... args) |
| template<typename T , typename... Args> | |
| T * | PushOverlay (Args &&... args) |
| const ApplicationSpecification & | GetSpecification () const |
| Window & | GetWindow () |
| Graphics & | GetGraphics () |
| Audio & | GetAudio () |
| Filesystem & | GetFilesystem () |
| const Filesystem & | GetFilesystem () const |
| ResourceCache & | GetResourceCache () |
| const ResourceCache & | GetResourceCache () const |
| void | Start () noexcept |
| void | Stop () noexcept |
| bool | IsRunning () const noexcept |
Static Public Member Functions | |
| static int | Launch (const ApplicationBootstrap &bootstrap, ApplicationFactory factory) |
Main application class.
Manages the application lifecycle, events, and layer stack.
|
explicit |
Constructs the application with a given specification.
| specification | Reference to the application specification. |
|
virtual |
Destroys the application.
|
delete |
Deleted copy constructor.
|
delete |
Deleted move constructor.
|
inline |
Retrieves the audio system.
|
inline |
Retrieves the graphics system.
|
inline |
Retrieves the application specification.
|
inline |
Retrieves the main application window.
| void pixelbullet::Application::OnEvent | ( | Event & | e | ) |
Handles an incoming event.
| e | Event to handle. |
|
delete |
Deleted move assignment operator.
|
delete |
Deleted copy assignment operator.
|
inline |
Pushes a layer onto the layer stack.
| layer | Unique pointer to the layer. |
|
inline |
Pushes an overlay onto the layer stack.
| layer | Unique pointer to the overlay layer. |