+
+const GL::Font &Resources::get_ui_font() const
+{
+ if(!ui_font)
+ throw runtime_error("no ui font");
+ return *ui_font;
+}
+
+const GL::Technique &Resources::get_ui_text_technique() const
+{
+ if(!ui_text_technique)
+ throw runtime_error("no ui text technique");
+ return *ui_text_technique;
+}
+
+void Resources::set_ui_text_resources(const string &font, const string &tech)
+{
+ ui_font = &get<GL::Font>(font);
+ ui_text_technique = &get<GL::Technique>(tech);
+}