Table of Contents | ||
|
||
RemoveAllFonts | ||
Purpose Frees all fronts from the manager |
||
Protoype void CTextMngr::RemoveAllFonts () |
||
Description Calling this function empties the font manager of all loaded fonts. This is not a good idea if you still have text objects visible on the screen (or even loaded, for that matter), as the render function will attempt to switch fonts and not be able to find the font object to switch to. Since fonts are loaded as pointers, TTF_CloseFont() is called to make sure that they are released properly and there are no memory leaks. |
||
Use CTextMngr text; text.RemoveAllFonts(); |
||
|
||
|