]> git.localhorst.tv Git - l2e.git/blob - src/main.cpp
added SDL initialization classes
[l2e.git] / src / main.cpp
1 /*
2  * main.cpp
3  *
4  *  Created on: Aug 1, 2012
5  *      Author: holy
6  */
7
8 #include "sdl/InitScreen.h"
9 #include "sdl/InitSDL.h"
10
11 #include <exception>
12 #include <iostream>
13
14 using sdl::InitScreen;
15 using sdl::InitSDL;
16
17 using std::cerr;
18 using std::cout;
19 using std::endl;
20 using std::exception;
21
22 int main(int argc, char **argv) {
23         const int width = 800;
24         const int height = 480;
25
26         try {
27                 InitSDL sdl;
28                 InitScreen screen(width, height);
29
30                 return 0;
31         } catch (exception &e) {
32                 cerr << "exception in main(): " << e.what() << endl;
33                 return 1;
34         }
35 }