charcoal/Example/main.cpp

31 lines
615 B
C++
Raw Permalink Normal View History

#pragma comment(lib, "charcoal.lib")
#pragma comment(lib, "charcoal-builtin.lib")
#include <charcoal/deps.h>
#include <charcoal/Exception.h>
#include <string>
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
{
try
{
MyApplication my_app(1280, 720);
return my_app.run();
}
catch (Exception& e)
{
OutputDebugString("Caught Exception: [");
OutputDebugString(e.get_file_name().c_str());
OutputDebugString(":");
OutputDebugString(std::to_string(e.get_line()).c_str());
OutputDebugString("]: ");
OutputDebugString(e.get_message().c_str());
OutputDebugString("\n");
return 1;
}
2018-09-04 19:25:54 +00:00
}