X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffont.h;h=a2406b9ee043009824dbe1787fd7a05d6b583038;hb=652cb91c2b6008c4407c16054085f20bf5888c4d;hp=b48c6445bb53a6d4136cd1d3c2b040edbf913c40;hpb=e92458a4a0e6191bff549a8b316dbbbd7c56e90f;p=libs%2Fgl.git diff --git a/source/font.h b/source/font.h index b48c6445..a2406b9e 100644 --- a/source/font.h +++ b/source/font.h @@ -38,11 +38,12 @@ public: DataFile::Collection &get_collection(); private: void init(); - void texture(const std::string &); void glyph(unsigned); + void texture_inline(); }; Font(); + ~Font(); void set_texture(const Texture2D &); const Texture2D &get_texture() const; @@ -109,6 +110,7 @@ private: typedef std::map GlyphMap; const Texture2D *tex; + bool own_tex; float default_size; float ascent; float descent;