FontManager::CopyFont

This commit is contained in:
Glenn Maynard
2005-07-15 03:49:29 +00:00
parent ddedfe25bc
commit 051903ecf4
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -61,6 +61,11 @@ Font* FontManager::LoadFont( const CString &sFontOrTextureFilePath, CString sCha
return f;
}
Font *FontManager::CopyFont( Font *pFont )
{
++pFont->m_iRefCount;
return pFont;
}
void FontManager::UnloadFont( Font *fp )
{
+1
View File
@@ -13,6 +13,7 @@ public:
~FontManager();
Font* LoadFont( const CString &sFontOrTextureFilePath, CString sChars = "" );
Font *CopyFont( Font *pFont );
void UnloadFont( Font *fp );
/* Warning: This reloads fonts completely, so all BitmapTexts need to be