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