equal
deleted
inserted
replaced
8 |
8 |
9 // initialize the global graphics object |
9 // initialize the global graphics object |
10 Graphics *graphics = NULL; |
10 Graphics *graphics = NULL; |
11 |
11 |
12 Graphics::Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config) : |
12 Graphics::Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config) : |
|
13 engine(engine), display(display_config), |
13 // display must be set up before fonts, due to implicit CL_DisplayWindow |
14 // display must be set up before fonts, due to implicit CL_DisplayWindow |
14 engine(engine), display(display_config), fonts(resources) |
15 fonts(resources), |
|
16 // get the InputContext from display |
|
17 input(display.get_ic()->get_keyboard()) |
15 { |
18 { |
16 assert(!graphics); |
19 assert(!graphics); |
17 |
20 |
18 // set the global graphics object |
21 // set the global graphics object |
19 graphics = this; |
22 graphics = this; |