Removed debug code for font cache and text component.

This commit is contained in:
emb 2015-01-01 14:59:18 -06:00
parent 511c774ffc
commit 2e25dfa251
3 changed files with 0 additions and 11 deletions

View File

@ -84,12 +84,6 @@ void Text::Draw()
rect.h = static_cast<int>(h);
rect.w = static_cast<int>(w);
rect.y = static_cast<int>(yOrigin);
/*
std::stringstream ss;
ss << " cx:" << charRect.x << " cy:" << charRect.y << " cw:" << charRect.w << " ch:" << charRect.h;
ss << " x:" << rect.x << " y:" << rect.y << " w:" << rect.w << " h:" << rect.h;
Logger::Write(Logger::ZONE_DEBUG, "Text", ss.str());
*/
SDL_LockMutex(SDL::GetMutex());
SDL_SetTextureColorMod(t, FontColor.r, FontColor.g, FontColor.b);

View File

@ -10,7 +10,6 @@
//todo: memory leak when launching games
FontCache::FontCache()
: IsInitialized(false)
{
}
@ -21,7 +20,6 @@ FontCache::~FontCache()
void FontCache::DeInitialize()
{
IsInitialized = false;
std::map<std::string, Font *>::iterator it = FontFaceMap.begin();
while(it != FontFaceMap.end())
{
@ -40,7 +38,6 @@ void FontCache::Initialize()
{
//todo: make bool
TTF_Init();
IsInitialized = true;
}
Font *FontCache::GetFont(std::string fontPath)
{

View File

@ -18,8 +18,6 @@ public:
virtual ~FontCache();
private:
bool IsInitialized;
std::map<std::string, Font *> FontFaceMap;
};