|
SolarSim
|
Main engine class managing core systems and game loop. More...
#include <engine.hpp>
Public Member Functions | |
| Engine (const Engine &)=delete | |
| Engine & | operator= (const Engine &)=delete |
| void | run () |
| Start the main game loop. | |
| const Window & | window () const |
| Window & | window () |
| const Renderer & | renderer () const |
| Renderer & | renderer () |
| const InputSystem & | inputManager () const |
| InputSystem & | inputManager () |
| const PhysicsSystem & | physicsSystem () const |
| PhysicsSystem & | physicsSystem () |
Static Public Member Functions | |
| static Engine & | get () |
| Get the singleton engine instance. | |
| static std::optional< Entity > | getPrimaryCamera (Registry ®istry) |
| Find the primary camera entity in the registry. | |
Private Member Functions | |
| Engine () | |
| ~Engine () | |
| void | init () |
| Initialize all engine subsystems. | |
Private Attributes | |
| Window | m_window |
| Renderer | m_renderer |
| InputSystem | m_inputSystem |
| PhysicsSystem | m_physicsSystem |
Main engine class managing core systems and game loop.
|
delete |
|
private |
|
private |
|
inlinestatic |
Get the singleton engine instance.
Find the primary camera entity in the registry.
| registry | The registry to search in |
|
private |
Initialize all engine subsystems.
– INIT IMGUI CONTEXT –
|
inline |
Non-const getter for the input management system
|
inline |
Const getter for the input management system
|
inline |
Non-const getter for the physics system
|
inline |
Const getter for the physics system
|
inline |
Non-const getter for the renderingsystem
|
inline |
Const getter for the renderingsystem
| void solarsim::Engine::run | ( | ) |
Start the main game loop.
|
inline |
Non-const getter for the window management system
|
inline |
Const getter for the window management system
|
private |
Input processing system
|
private |
Physics handling system
|
private |
Rendering system