39 lines
937 B
C++
39 lines
937 B
C++
//============================================================================
|
|
// Name : Tower.cpp
|
|
// Author : Persson
|
|
// Version :
|
|
// Copyright : Copyright
|
|
// Description : Hello World in C++, Ansi-style
|
|
//============================================================================
|
|
|
|
#if !defined(NDEBUG) && !defined(_WIN32)
|
|
#define BACKWARD_HAS_UNWIND 1
|
|
#define BACKWARD_HAS_DW 1
|
|
#endif
|
|
|
|
#include "window/Display.h"
|
|
#include "updater/Updater.h"
|
|
#include "misc/Backward.hpp"
|
|
|
|
#ifdef __ANDROID__
|
|
extern "C"
|
|
#endif
|
|
|
|
int main(int argc, const char* args[]) {
|
|
#if !defined(NDEBUG)
|
|
// setup signal handling
|
|
backward::SignalHandling sh;
|
|
#endif
|
|
|
|
// remove the outdated binary
|
|
td::utils::Updater::RemoveOldFile();
|
|
|
|
Display::Create();
|
|
while (!Display::IsCloseRequested()) {
|
|
Display::PollEvents();
|
|
Display::Render();
|
|
Display::Update();
|
|
}
|
|
Display::Destroy();
|
|
return 0;
|
|
} |