FontManager::CopyFont
This commit is contained in:
@@ -61,6 +61,11 @@ Font* FontManager::LoadFont( const CString &sFontOrTextureFilePath, CString sCha
|
|||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Font *FontManager::CopyFont( Font *pFont )
|
||||||
|
{
|
||||||
|
++pFont->m_iRefCount;
|
||||||
|
return pFont;
|
||||||
|
}
|
||||||
|
|
||||||
void FontManager::UnloadFont( Font *fp )
|
void FontManager::UnloadFont( Font *fp )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ public:
|
|||||||
~FontManager();
|
~FontManager();
|
||||||
|
|
||||||
Font* LoadFont( const CString &sFontOrTextureFilePath, CString sChars = "" );
|
Font* LoadFont( const CString &sFontOrTextureFilePath, CString sChars = "" );
|
||||||
|
Font *CopyFont( Font *pFont );
|
||||||
void UnloadFont( Font *fp );
|
void UnloadFont( Font *fp );
|
||||||
|
|
||||||
/* Warning: This reloads fonts completely, so all BitmapTexts need to be
|
/* Warning: This reloads fonts completely, so all BitmapTexts need to be
|
||||||
|
|||||||
Reference in New Issue
Block a user