2018-10-10 17:44:15 -04:00
|
|
|
#include "deps.h"
|
2018-09-05 11:47:09 -04:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Exception.h"
|
|
|
|
|
2018-09-04 15:25:54 -04:00
|
|
|
#include "MyApplication.h"
|
|
|
|
|
2018-09-06 01:14:00 -04:00
|
|
|
int main(int argc, char** argv)
|
2018-09-04 15:41:17 -04:00
|
|
|
{
|
2018-09-05 11:47:09 -04:00
|
|
|
try
|
|
|
|
{
|
2018-09-08 00:06:10 -04:00
|
|
|
MyApplication my_app(1280, 720);
|
2018-09-05 11:47:09 -04:00
|
|
|
return my_app.run();
|
|
|
|
}
|
|
|
|
catch (Exception& e)
|
|
|
|
{
|
|
|
|
OutputDebugString("Caught Exception: [");
|
2018-09-10 11:35:02 -04:00
|
|
|
OutputDebugString(e.get_file_name().c_str());
|
|
|
|
OutputDebugString(":");
|
|
|
|
OutputDebugString(std::to_string(e.get_line()).c_str());
|
2018-09-05 11:47:09 -04:00
|
|
|
OutputDebugString("]: ");
|
|
|
|
OutputDebugString(e.get_message().c_str());
|
|
|
|
OutputDebugString("\n");
|
|
|
|
return 1;
|
|
|
|
}
|
2018-09-11 15:00:28 -04:00
|
|
|
|
|
|
|
|
2018-09-04 15:25:54 -04:00
|
|
|
}
|