Changeset 3772 in orxonox.OLD for orxonox/branches/textEngine
- Timestamp:
- Apr 11, 2005, 12:28:02 AM (20 years ago)
- Location:
- orxonox/branches/textEngine/src/lib/graphics/font
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc
r3771 r3772 57 57 Text::~Text(void) 58 58 { 59 59 TextEngine::getInstance()->deleteText(this); 60 60 } 61 61 … … 787 787 else 788 788 PRINTF(4)("Fonts already initialized\n"); 789 790 789 } 791 790 … … 826 825 } 827 826 827 /** 828 \brief removes a Text from the List 829 \param the text to delete 830 */ 831 void TextEngine::deleteText(Text* text) 832 { 833 ResourceManager::getInstance()->unload(text->font); 834 textList->remove(text); 835 836 } 837 838 /** 839 \brief draws all the Texts that have been initialized 840 */ 828 841 void TextEngine::draw(void) 829 842 { -
orxonox/branches/textEngine/src/lib/graphics/font/text_engine.h
r3770 r3772 197 197 Uint8 g = FONT_DEFAULT_COLOR_G, 198 198 Uint8 b = FONT_DEFAULT_COLOR_B); 199 200 void deleteText(Text* text); 199 201 200 202 void draw(void);
Note: See TracChangeset
for help on using the changeset viewer.