Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
Application.h
Go to the documentation of this file.
1#pragma once
2
3namespace eng
4{
6 {
7 public:
8 virtual ~Application() = default;
9 virtual void RegisterTypes();
10 virtual bool Init() = 0;
11 // deltaTime in seconds
12 virtual void Update(float deltaTime) = 0;
13 virtual void Destroy() = 0;
14
15 void SetNeedsToBeClosed(bool value);
16 bool NeedsToBeClosed() const;
17
18 private:
19 bool m_needsToBeClosed = false;
20 };
21}
virtual void RegisterTypes()
virtual void Update(float deltaTime)=0
bool NeedsToBeClosed() const
virtual bool Init()=0
virtual void Destroy()=0
void SetNeedsToBeClosed(bool value)
virtual ~Application()=default