❖
Monad Engine
da02fba2
>
Undercity Codex
_
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
#include "
Game.h
"
2
#include <
eng.h
>
3
4
int
main
()
5
{
6
Game
* game =
new
Game
();
7
eng::Engine
& engine =
eng::Engine::GetInstance
();
8
engine.
SetApplication
(game);
9
10
if
(engine.
Init
(1280, 720))
11
{
12
engine.
Run
();
13
}
14
15
engine.
Destroy
();
16
return
0;
17
}
Game.h
Game
Definition
Game.h:6
eng::Engine
Definition
Engine.h:19
eng::Engine::SetApplication
void SetApplication(Application *app)
Definition
Engine.cpp:180
eng::Engine::Init
bool Init(int width, int height)
Definition
Engine.cpp:56
eng::Engine::Run
void Run()
Definition
Engine.cpp:108
eng::Engine::GetInstance
static Engine & GetInstance()
Definition
Engine.cpp:50
eng::Engine::Destroy
void Destroy()
Definition
Engine.cpp:169
eng.h
main
int main()
Definition
main.cpp:4
docs
GD-Engine-lesson-5-2
source
main.cpp
Generated by
1.9.8