]> git.localhorst.tv Git - space.git/blob - src/space.cpp
move to SDL2
[space.git] / src / space.cpp
1 #include "app/Application.h"
2 #include "app/SDL.h"
3 #include "graphics/Canvas.h"
4 #include "graphics/Window.h"
5
6 using namespace space;
7
8
9 int main(int argc, const char *argv[]) {
10         SDL sdl(SDL_INIT_VIDEO);
11         Window win(
12                 "space",
13                 Window::POS_UNDEF,
14                 Vector<int>(800, 600),
15                 SDL_WINDOW_RESIZABLE
16         );
17         Canvas canv(win.CreateCanvas(
18                 0
19         ));
20
21         Application app(canv);
22         app.Run();
23
24         return 0;
25 }