Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
application.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
#include "
export.hpp
"
9
10
namespace
toast {
11
12
class
IApplication
{
13
public
:
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
26
void
TOAST_API pushApplicationLayer(
IApplication
* app);
27
void
TOAST_API popApplicationLayer(
IApplication
* app);
28
29
}
toast::IApplication
Definition
application.hpp:12
export.hpp
engine
src
toast
application.hpp
Generated by
1.17.0