src/Graphics/Graphics.cc
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 03:33:35 +0200
branchnew_graphics
changeset 411 106aaf6eadfe
child 412 721c60072091
permissions -rw-r--r--
there's a grain of truth in the new graphics code now...

#include "Graphics.hh"

#include <cassert>

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

}