X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphic.h;h=b93111348175874150190c1666c5d6896d6efe61;hb=a38c924ff32081f5cd67c2b0e2d5ca61f0e99de2;hp=a9722ad97ff3e498187fffae3ff229a4654e66ae;hpb=b23464cda4e4f2c7b69b18549f18c2c893c3fe2d;p=libs%2Fgltk.git diff --git a/source/graphic.h b/source/graphic.h index a9722ad..b931113 100644 --- a/source/graphic.h +++ b/source/graphic.h @@ -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 &) const; + void create_texcoords(float, float, float, float, float, std::vector &) const; }; } // namespace GLtk