]> git.tdb.fi Git - libs/gltk.git/commitdiff
Add a shortcut for defining normal graphic
authorMikko Rasa <tdb@tdb.fi>
Sun, 22 Sep 2013 15:05:03 +0000 (18:05 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 22 Sep 2013 15:07:07 +0000 (18:07 +0300)
source/part.cpp
source/part.h

index 7c98545c87a49ea5442b88a4463bfaf1c18c620b..4726b4c007daed4e665d64b13cadf76e28e8fc2b 100644 (file)
@@ -58,6 +58,11 @@ Part::Loader::~Loader()
                }
 }
 
+void Part::Loader::graphic_normal(const string &n)
+{
+       graphic(NORMAL, n);
+}
+
 void Part::Loader::graphic(State s, const string &n)
 {
        Graphic *grph = &get_collection().get<Graphic>(n);
index a3e065a038058e92d8b60c325114062420311b47..252d5a3cbecad1d2fafe1eec17edbced1a592fdf 100644 (file)
@@ -25,6 +25,7 @@ public:
                Loader(Part &, Resources &);
                ~Loader();
        private:
+               void graphic_normal(const std::string &);
                void graphic(State, const std::string &);
                void align(float, float);
                void fill(float, float);