Changeset 5344 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text_engine.cc
- Timestamp:
- Oct 10, 2005, 12:39:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/text_engine.cc
r5343 r5344 23 23 24 24 #include "text_engine.h" 25 #include "text.h" 26 #include "font.h" 25 27 26 28 using namespace std; … … 34 36 #include "class_list.h" 35 37 36 #include "p_node.h"37 #include "vector.h"38 38 #include "debug.h" 39 39 #include "list.h" … … 126 126 127 127 /** 128 * creates a new Text with a certain font.129 * @see Font::Font130 * @see Text::Text131 */132 Text* TextEngine::createText(const char* fontFile, unsigned int fontSize, int textType)133 {134 Font* tmpFont;135 Text* newText;136 Vector tmpVec;137 138 tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, &fontSize);139 if (!tmpFont)140 {141 PRINTF(2)("Font %s could not be loaded, probably file not found\n", fontFile);142 return NULL;143 }144 else145 return new Text(tmpFont, TEXT_RENDER_DYNAMIC);146 }147 148 /**149 128 * outputs some nice Debug information 150 129
Note: See TracChangeset
for help on using the changeset viewer.