charcoal/Example/main.cpp
elipzer 7cbe8acf30 Libraries Work!
Now the code is being compiled through .lib files!
2018-10-11 01:26:24 -04:00

31 lines
615 B
C++

#pragma comment(lib, "charcoal.lib")
#pragma comment(lib, "charcoal-builtin.lib")
#include <charcoal/deps.h>
#include <charcoal/Exception.h>
#include <string>
#include "MyApplication.h"
int main(int argc, char** argv)
{
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;
}
}