src/Graphics/Graphics.cc
branchnew_graphics
changeset 411 106aaf6eadfe
child 412 721c60072091
equal deleted inserted replaced
410:41fd46cffc52 411:106aaf6eadfe
       
     1 
       
     2 #include "Graphics.hh"
       
     3 
       
     4 #include <cassert>
       
     5 
       
     6 namespace graphics
       
     7 {
       
     8 
       
     9 // initialize the global graphics object
       
    10 static Graphics *graphics = NULL;
       
    11 
       
    12 Graphics::Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config) :
       
    13     engine(engine), fonts(resources), display(display_config)
       
    14 {
       
    15     assert(!graphics);
       
    16 
       
    17     // set the global graphics object
       
    18     graphics = this;
       
    19     
       
    20 }
       
    21 
       
    22 }