Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
Engine Core

Singleton engine lifecycle, application base class, and main loop. More...

Files

file  Application.h
 Abstract base class for the user-defined game or lab application.
 
file  Engine.h
 Central singleton that owns and coordinates all engine subsystems.
 

Detailed Description

Singleton engine lifecycle, application base class, and main loop.

Engine lifecycle, application contract, and shared types.

The two classes that form the entry point of every Monad Engine program:

Typical startup:

Engine &e = Engine::GetInstance();
e.SetApplication(new MyGame());
e.Init(1280, 720);
e.Run();
e.Destroy();

The Core module hosts the entry points every game touches:

Every subsystem in the engine is reachable from Engine::GetInstance(), so once a frame has begun all of them can be queried without passing references through layers.

See also
Subsystem Map