Display
This commit is contained in:
1 parent
96fcddea30
commit
1d16c0ae68
12 files changed
+256
-39
No files matched your search
@@ -6,18 +6,39 @@
|
||||
#pragma once
|
||||
#include "time/Time.hpp"
|
||||
#include "console/Console.hpp"
|
||||
#include "display/Display.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
struct Engine {
|
||||
private:
|
||||
static std::shared_ptr<Engine> instance;
|
||||
|
||||
bool_t exitRequested = false;
|
||||
|
||||
public:
|
||||
Time time;
|
||||
Console console;
|
||||
Display display;
|
||||
|
||||
/**
|
||||
* Get the singleton instance of the engine.
|
||||
*
|
||||
* @return A shared pointer to the engine instance.
|
||||
*/
|
||||
static std::shared_ptr<Engine> getInstance();
|
||||
|
||||
/**
|
||||
* Constructor for the Dawn engine.
|
||||
*/
|
||||
Engine();
|
||||
|
||||
/**
|
||||
* Check if an exit has been requested.
|
||||
*
|
||||
* @return True if an exit has been requested, false otherwise.
|
||||
*/
|
||||
bool_t isExitRequested() const;
|
||||
|
||||
/**
|
||||
* Update the engine state.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user