X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.cpp;h=3e0f851d701e3b961a38b564a1280507861f0d77;hb=3d84860cb25cf05ed36ee6cbd07d9e58cee52422;hp=b3ec3698d136a65268aa74c7115a09df7d218666;hpb=6d1e3e1b480be48b78e04fe22fa8924eb18ad994;p=libs%2Fgltk.git diff --git a/source/resources.cpp b/source/resources.cpp index b3ec369..3e0f851 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include +#include #include "resources.h" using namespace std; @@ -14,45 +7,22 @@ namespace Msp { namespace GLtk { Resources::Resources(): - path("."), default_font(0) { - add_keyword("graphic"); - - add_creator(&Resources::create_font); - add_creator(&Resources::create_texture); -} - -void Resources::set_path(const Path &p) -{ - path=p; + add_type().keyword("graphic"); + add_type().keyword("texture"); + add_type().keyword("font"); + add_type