]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/graphic.h
Support loading Buttons from datafiles
[libs/gltk.git] / source / graphic.h
index a9722ad97ff3e498187fffae3ff229a4654e66ae..b93111348175874150190c1666c5d6896d6efe61 100644 (file)
@@ -23,6 +23,7 @@ public:
                typedef Resources Collection;
 
                Loader(Graphic &, Resources &);
+               Graphic &get_object() const { return graph; }
        private:
                void texture(const std::string &);
                void slice(unsigned, unsigned, unsigned, unsigned);
@@ -42,6 +43,10 @@ private:
        Sides shadow;
        const GL::Texture2D *texture;
        Geometry slice;
+       bool repeat;
+
+       void create_coords(float, float, float, float, float, std::vector<float> &) const;
+       void create_texcoords(float, float, float, float, float, std::vector<float> &) const;
 };
 
 } // namespace GLtk