Changeset 5078 in orxonox.OLD for trunk/src/lib/graphics/text_engine.cc
- Timestamp:
- Aug 19, 2005, 5:02:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine.cc
r5077 r5078 813 813 /** 814 814 * creates a new Text with a certain font. 815 \see Font::Font816 \see Text::Text815 @see Font::Font 816 @see Text::Text 817 817 */ 818 818 Text* TextEngine::createText(const char* fontFile, unsigned int fontSize, int textType, Uint8 r, Uint8 g, Uint8 b) … … 831 831 832 832 return new Text(tmpFont, TEXT_DYNAMIC); 833 }834 835 /**836 * deletes all the Text, and tries to delete all allocated fonts837 */838 void TextEngine::flush()839 {840 tIterator<BaseObject>* textIterator = ClassList::getList(CL_TEXT)->getIterator();841 Text* text = dynamic_cast<Text*>(textIterator->nextElement());842 while( text != NULL)843 {844 delete text;845 text = dynamic_cast<Text*>(textIterator->nextElement());846 }847 delete textIterator;848 833 } 849 834
Note: See TracChangeset
for help on using the changeset viewer.