Toast Engine
Loading...
Searching...
No Matches
application.hpp
Go to the documentation of this file.
1
6
7#pragma once
8#include "export.hpp"
9
10namespace toast {
11
13public:
14 virtual ~IApplication() = default;
15
16 virtual void begin() = 0;
17 virtual void tick() = 0;
18 virtual void destroy() = 0;
19
20 // Registers the game's reflected types with the engine. Games override this
21 // (typically forwarding to the generated registerGameTypes()); defaults to a no-op.
22 // Called by pushApplicationLayer, so registration runs from inside the game module.
23 virtual void registerTypes() { }
24};
25
26void TOAST_API pushApplicationLayer(IApplication* app);
27void TOAST_API popApplicationLayer(IApplication* app);
28
29}
Definition application.hpp:12