9 Style::Style(Resources &r):
10 font(&r.get_default_font())
13 const Part *Style::get_part(const string &name) const
15 for(PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i)
16 if(i->get_name()==name)
23 Style::Loader::Loader(Style &s, Resources &r):
27 add("font", &Style::font);
28 add("font_color", &Loader::font_color);
29 add("part", static_cast<void (Loader::*)()>(&Loader::part));
30 add("part", static_cast<void (Loader::*)(const std::string &)>(&Loader::part));
32 add("special", static_cast<void (Loader::*)(const std::string &)>(&Loader::part));
35 void Style::Loader::font_color(float r, float g, float b)
37 style.font_color = GL::Color(r, g, b);
40 void Style::Loader::part()
45 void Style::Loader::part(const string &n)
49 style.parts.push_back(p);