diff -r 41fd46cffc52 -r 106aaf6eadfe src/Graphics/Graphics.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Graphics/Graphics.cc Wed Jan 21 03:33:35 2009 +0200 @@ -0,0 +1,22 @@ + +#include "Graphics.hh" + +#include + +namespace graphics +{ + +// initialize the global graphics object +static Graphics *graphics = NULL; + +Graphics::Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config) : + engine(engine), fonts(resources), display(display_config) +{ + assert(!graphics); + + // set the global graphics object + graphics = this; + +} + +}