]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/beatcounter.cpp
Put everything in namespace Msp::DemoScene
[libs/demoscene.git] / source / beatcounter.cpp
index cce19596ddc2796ea47ea312238095be91aae471..d914c201790c279e116ae0e627bebde2f79afe5d 100644 (file)
@@ -1,10 +1,11 @@
 #include <msp/strings/format.h>
 #include "beatcounter.h"
 
-using namespace Msp;
+namespace Msp {
+namespace DemoScene {
 
-BeatCounter::BeatCounter(DataFile::Collection &resources):
-       text(resources.get<GL::Font>("ikarius-48.font"), &resources.get<GL::Technique>("basic_text.tech")),
+BeatCounter::BeatCounter(Resources &resources):
+       text(resources.get_ui_font(), &resources.get_ui_text_technique()),
        instance(text)
 {
        text.set_alignment(GL::Text::CENTER);
@@ -20,3 +21,6 @@ void BeatCounter::render(GL::Renderer &renderer, const GL::Tag &tag) const
 {
        instance.render(renderer, tag);
 }
+
+} // namespace DemoScene
+} // namespace Msp