Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
Application.h File Reference

Abstract base class for the user-defined game or lab application. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mnd::Application
 Interface that every runnable game or lab must implement. More...
 

Namespaces

namespace  mnd
 

Detailed Description

Abstract base class for the user-defined game or lab application.

How to use

  1. Subclass Application and implement Init(), Update(), and Destroy().
  2. Pass an instance to Engine::SetApplication() before calling Engine::Init().
  3. Engine::Run() calls Update() once per frame and stops when NeedsToBeClosed() returns true or the OS window is closed.
class Game : public mnd::Application {
public:
bool Init() override { ... return true; }
void Update(float dt) override { ... }
void Destroy() override { ... }
};
Definition Game.h:6
void Destroy() override
Definition Game.cpp:52
void Update(float deltaTime) override
Definition Game.cpp:47
bool Init() override
Definition Game.cpp:16
Interface that every runnable game or lab must implement.
Definition Application.h:36
See also
Engine

Definition in file Application.h.