FontManager::CopyFont
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user