3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
16 Style::Style(Resources &r):
17 font(&r.get_default_font())
21 Style::Loader::Loader(Style &s, Resources &r):
25 add("font", &Style::font);
26 add("font_color", &Loader::font_color);
27 add("part", &Loader::part);
28 add("special", &Loader::special);
31 void Style::Loader::font_color(float r, float g, float b)
33 style.font_color=GL::Color(r, g, b);
36 void Style::Loader::part()
40 style.parts.push_back(p);
43 void Style::Loader::special(const string &n)
47 style.parts.push_back(p);