X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.cpp;h=3e0f851d701e3b961a38b564a1280507861f0d77;hb=eb6eee5fabf05abca4a0434c2a8f8f62c900afec;hp=2cfe022c1a1d74d5035aa855922dcc7ba9e5f0c8;hpb=ed9873ba7ee862ad76937f579fe371c1a27d5715;p=libs%2Fgltk.git diff --git a/source/resources.cpp b/source/resources.cpp index 2cfe022..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