-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (28 loc) · 886 Bytes
/
main.cpp
File metadata and controls
40 lines (28 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
////////////////////////////////////////////////////////////
// Project SimpleGame
// Copyright (c) 2022 sk-landry
////////////////////////////////////////////////////////////
// The Macro NERO_RENDER_ENGINE allows you to run the Editor when CodeBlocks is in Debug Mode
// and the Render Engine CodeBlocks is in Release Mode
#ifndef NERO_RENDER_ENGINE
#include <Nero/engine/Editor.h>
#include "SimpleGame.h"
int main()
{
nero::Editor editor(1900);
editor.addScene<ng::SimpleGame>("SimpleGame");
editor.run();
return 0;
}
#else
#include <Nero/engine/RenderEngine.h>
#include "SimpleGame.h"
#include "LoadingScreen.h"
int main()
{
nero::RenderEngine engine;
engine.setScene<ng::SimpleGame>("SimpleGame");
engine.run();
return 0;
}
#endif // NERO_RENDER_ENGINE