| author | Tero Marttila <terom@fixme.fi> |
| Wed, 21 Jan 2009 23:25:29 +0200 | |
| branch | new_graphics |
| changeset 413 | 7dddc163489a |
| parent 412 | 721c60072091 |
| child 414 | cede5463b845 |
| permissions | -rw-r--r-- |
#include "Graphics.hh" #include <cassert> namespace graphics { // initialize the global graphics object Graphics *graphics = NULL; Graphics::Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config) : // display must be set up before fonts, due to implicit CL_DisplayWindow engine(engine), display(display_config), fonts(resources) { assert(!graphics); // set the global graphics object graphics = this; } }