-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
37 lines (35 loc) · 1.06 KB
/
main.cpp
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
#if defined(IS_ENGINE_VS_CODE)
#include "Main.hpp"
#endif
#include "isEngine/core/GameEngine.h"
////////////////////////////////////////////////////////////
/// \brief application entry point
////////////////////////////////////////////////////////////
int main()
{
#if defined(IS_ENGINE_VS_CODE)
#if defined(_DEBUG)
// Display a text in the console to inform that we are in Debug mode on Visual Studio Code
is::showLog("Debug Mode Start!");
#endif
#endif
is::GameEngine game;
#if defined(IS_ENGINE_VS_CODE)
#ifdef SFML_SYSTEM_WINDOWS
// Allows to create the icon for the application when developing with Visual Studio Code
windowsHelper.setIcon(game.getRenderWindow().getSystemHandle());
#endif
#endif
game.play();
// uncomment "game.basicSFMLmain()" to display a basic sfml window
// if this line is uncommented you must comment this one "game.play()"
// to avoid using the main engine rendering loop
/*
game.basicSFMLmain();
*/
#if defined (__ANDROID__)
std::terminate(); // close application
#else
return 0;
#endif // defined
}