src/Graphics/Graphics.cc
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 23:07:22 +0200
branchnew_graphics
changeset 412 721c60072091
parent 411 106aaf6eadfe
child 414 cede5463b845
permissions -rw-r--r--
new graphics code compiles... no, it doesn't work yet

#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;
    
}

}