src/Graphics/Graphics.cc
author Tero Marttila <terom@fixme.fi>
Thu, 22 Jan 2009 02:56:50 +0200
branchnew_graphics
changeset 420 278020dcd9b7
parent 414 cede5463b845
permissions -rw-r--r--
clean up Server/Client log output a bit

#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) :
    engine(engine), display(display_config), 
    // display must be set up before fonts, due to implicit CL_DisplayWindow
    fonts(resources), 
    // get the InputContext from display
    input(display.get_ic()->get_keyboard())
{
    assert(!graphics);

    // set the global graphics object
    graphics = this;
    
}

}