in progress: added shalloc.h/cc did nothing :p
[winnie] / src / winnie.cc
1 #include "winnie.h"
2 #include "keyboard.h"
3 #include "mouse.h"
4
5 bool winnie_init()
6 {
7         if(!init_gfx()) {
8                 return false;
9         }
10
11         if(!init_window_manager()) {
12                 return false;
13         }
14
15         if(!init_keyboard()) {
16                 return false;
17         }
18
19         if(!init_mouse()) {
20                 return false;
21         }
22
23         if(!init_text()) {
24                 return false;
25         }
26
27         wm->invalidate_region(get_screen_size());
28         return true;
29 }
30
31 void winnie_shutdown()
32 {
33         destroy_gfx();
34         destroy_keyboard();
35         destroy_mouse();
36 }