X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=2040663eba42195dd402a2aa0f5034d127ba5c1c;hb=ef384cccd0e23a5de0a82f35ef3367754a8c3719;hp=0fce8fe511640d4e9f3fdb7fa9feceaa224e7e1a;hpb=e411b1bbef7bc5bc383046e7bf294d2c5a17ac7e;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 0fce8fe..2040663 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,6 +5,31 @@ * Author: holy */ +#include "sdl/InitScreen.h" +#include "sdl/InitSDL.h" + +#include +#include + +using sdl::InitScreen; +using sdl::InitSDL; + +using std::cerr; +using std::cout; +using std::endl; +using std::exception; + int main(int argc, char **argv) { - return 0; + const int width = 800; + const int height = 480; + + try { + InitSDL sdl; + InitScreen screen(width, height); + + return 0; + } catch (exception &e) { + cerr << "exception in main(): " << e.what() << endl; + return 1; + } }