Skip to content
Snippets Groups Projects
Commit c207d2ae authored by Oliver Bock's avatar Oliver Bock
Browse files

Font resource doesn't need to be stored

parent df462e69
No related branches found
No related tags found
No related merge requests found
...@@ -505,14 +505,11 @@ void Starsphere::resize(const int width, const int height) ...@@ -505,14 +505,11 @@ void Starsphere::resize(const int width, const int height)
*/ */
void Starsphere::initialize(const int width, const int height, const Resource *font) void Starsphere::initialize(const int width, const int height, const Resource *font)
{ {
// store font resource
this->m_FontResource = font;
// setup initial dimensions // setup initial dimensions
resize(width, height); resize(width, height);
// create font instance using font resource (base address + size) // create font instance using font resource (base address + size)
m_PolygonFont = new FTGLPolygonFont((&m_FontResource->data()->at(0)), m_FontResource->data()->size()); m_PolygonFont = new FTGLPolygonFont(&font->data()->at(0), font->data()->size());
m_PolygonFont->CharMap(ft_encoding_unicode); m_PolygonFont->CharMap(ft_encoding_unicode);
// m_PolygonFont->Depth(0.05); // m_PolygonFont->Depth(0.05);
......
...@@ -124,7 +124,6 @@ private: ...@@ -124,7 +124,6 @@ private:
}; };
// resource handling // resource handling
const Resource *m_FontResource;
FTFont *m_PolygonFont; FTFont *m_PolygonFont;
// local HUD contents // local HUD contents
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment