Add project files.

This commit is contained in:
2018-06-25 21:48:45 -04:00
parent b04a25689b
commit 3c1b7d28e8
425 changed files with 35333 additions and 0 deletions
@@ -0,0 +1,25 @@
#include "cFontHolder.hpp"
using TextTypeHelpers::cFontHolder;
cFontHolder::cFontHolder( TTF_Font* font, const unsigned long int size )
: mp_font(font), m_size(size)
{}
cFontHolder::~cFontHolder()
{
if (mp_font != nullptr) {
TTF_CloseFont(mp_font);
mp_font = nullptr;
}
}
TTF_Font* cFontHolder::getFont() const
{
return mp_font;
}
const unsigned long int cFontHolder::getSize() const
{
return m_size;
}